Skip to content
Snippets Groups Projects
Commit 7e96d5e9 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

moved common includes and typedefs to gnss_utils.h

parent 9a3a5e29
No related branches found
No related tags found
3 merge requests!20new tag,!19new tag,!10Refactor: satellite, snapshot and tdcp
......@@ -5,4 +5,38 @@ extern "C" {
#include "rtklib.h"
}
#endif
\ No newline at end of file
// std includes
#include <set>
#include <map>
#include <vector>
#include <iostream>
#include <memory>
#include <cassert>
// eigen
#include <eigen3/Eigen/Dense>
namespace GnssUtils
{
// forward declarations
class Observations;
class Navigation;
class Snapshot;
// Typedefs
typedef std::map<int,Eigen::Vector3d> SatellitesPositions;
// pointer typedefs
typedef std::shared_ptr<Observations> ObservationsPtr;
typedef std::shared_ptr<const Observations> ObservationsConstPtr;
typedef std::shared_ptr<Navigation> NavigationPtr;
typedef std::shared_ptr<const Navigation> NavigationConstPtr;
typedef std::shared_ptr<Snapshot> SnapshotPtr;
typedef std::shared_ptr<const Snapshot> SnapshotConstPtr;
}
#endif
#ifndef INCLUDE_GNSS_UTILS_NAVIGATION_H_
#define INCLUDE_GNSS_UTILS_NAVIGATION_H_
#include <vector>
#include <iostream>
#include <memory>
#include "gnss_utils/gnss_utils.h"
namespace GnssUtils
{
class Navigation;
typedef std::shared_ptr<Navigation> NavigationPtr;
typedef std::shared_ptr<const Navigation> NavigationConstPtr;
class Navigation
{
......
#ifndef INCLUDE_GNSS_UTILS_OBSERVATIONS_H_
#define INCLUDE_GNSS_UTILS_OBSERVATIONS_H_
#include <vector>
#include <map>
#include <set>
#include <iostream>
#include <memory>
#include <cassert>
#include <eigen3/Eigen/Dense>
#include "gnss_utils/gnss_utils.h"
namespace GnssUtils
{
class Observations;
typedef std::shared_ptr<Observations> ObservationsPtr;
typedef std::shared_ptr<const Observations> ObservationsConstPtr;
typedef std::map<int,Eigen::Vector3d> SatellitesPositions;
class Observations
{
......
......@@ -14,20 +14,9 @@
namespace GnssUtils
{
// forward declarations
class Observations;
class Navigation;
typedef std::map<int,Eigen::Vector3d> SatellitesPositions;
typedef std::shared_ptr<Observations> ObservationsPtr;
typedef std::shared_ptr<Navigation> NavigationPtr;
class Snapshot;
typedef std::shared_ptr<Snapshot> SnapshotPtr;
typedef std::shared_ptr<const Snapshot> SnapshotConstPtr;
class Snapshot
{
public:
// Constructor & Destructor
Snapshot();
......
/*
* tdcp.h
*
* Created on: Dec 4, 2019
* Author: jvallve
*/
#ifndef INCLUDE_GNSS_UTILS_TDCP_H_
#define INCLUDE_GNSS_UTILS_TDCP_H_
#define GNSS_UTILS_TDCP_DEBUG 1
#include <set>
#include "gnss_utils/utils/rcv_position.h"
#include "utils/satellite.h"
#include "gnss_utils/snapshot.h"
#include "gnss_utils/gnss_utils.h"
namespace GnssUtils
{
......
/*
* tdcp.cpp
*
* Created on: Dec 4, 2019
* Author: jvallve
*/
#include "gnss_utils/tdcp.h"
#include "gnss_utils/utils/rcv_position.h"
#include "gnss_utils/utils/satellite.h"
#include "gnss_utils/snapshot.h"
namespace GnssUtils
{
......@@ -297,7 +293,7 @@ bool Tdcp(SnapshotPtr snapshot_r,
printf("Ref distance = %7.3f m\n", d_0.norm());
printf("Computed distance = %7.3f m\n", d.head<3>().norm());
printf("Tdcp: residual = %13.10f\n", residual);
printf("Tdcp: row = %i\n", r.rows());
printf("Tdcp: row = %lu\n", r.rows());
std::cout << "Tdcp: drho = " << r.transpose() << std::endl;
std::cout << "Tdcp: drho_m = " << drho_m.transpose() << std::endl;
std::cout << "Tdcp: H = \n" << A << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment