Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in MSF_Measurement.h, time & time_ ? #153

Open
AlexisTM opened this issue Nov 16, 2016 · 0 comments
Open

Error in MSF_Measurement.h, time & time_ ? #153

AlexisTM opened this issue Nov 16, 2016 · 0 comments

Comments

@AlexisTM
Copy link

I am not sure, but the time comparator compares MSF_MeasurementBase<EKFState_T>->_time but it seems to be declared as time in the class.

A rapid search of time_ shows nowhere time_ is initialised.

The class (truncated) :

template<typename EKFState_T>
class MSF_MeasurementBase {
 public:
  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
  MSF_MeasurementBase(bool isabsoluteMeasurement, int sensorID,
                      bool enable_mah_outlier_rejection,
                      double mah_threshold);
  virtual ~MSF_MeasurementBase() {}
  /**
   * \brief The method called by the msf_core to apply the measurement
   * represented by this object.
   */
  virtual void Apply(shared_ptr<EKFState_T> stateWithCovariance,
                     MSF_Core<EKFState_T>& core) = 0;
  virtual std::string Type() = 0;
  int sensorID_;
  bool isabsolute_;
  double time;  ///< The time_ this measurement was taken.
}

the comparaison :

template<typename EKFState_T>
class sortMeasurements {
 public:
  /**
   * Implements the sorting by time.
   */
  bool operator()(const MSF_MeasurementBase<EKFState_T>& lhs,
                  const MSF_MeasurementBase<EKFState_T>& rhs) const {
    return (lhs.time_ < rhs.time_);
  }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant