mars_lib  0.1.0.3dc76ee85e09
Modular and Robust Sensor-Fusion
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mars::BodyvelMeasurementType Class Reference

#include </home/runner/work/mars_lib/mars_lib/source/mars/include/mars/sensors/bodyvel/bodyvel_measurement_type.h>

+ Inheritance diagram for mars::BodyvelMeasurementType:
+ Collaboration diagram for mars::BodyvelMeasurementType:

Public Member Functions

 BodyvelMeasurementType ()=default
 
 BodyvelMeasurementType (Eigen::Vector3d velocity)
 
std::string to_csv_string (const double &timestamp) const
 
- Public Member Functions inherited from mars::BaseMeas
bool get_meas_noise (Eigen::MatrixXd *meas_noise)
 get the measurement noise associated with the current sensor measurement More...
 
void set_meas_noise (const Eigen::MatrixXd &meas_noise)
 
- Public Member Functions inherited from mars::MeasInterface
virtual ~MeasInterface ()=default
 

Static Public Member Functions

static std::string get_csv_state_header_string ()
 

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d velocity_
 Velocity [x y z]. More...
 
- Public Attributes inherited from mars::BaseMeas
Eigen::MatrixXd meas_noise_
 
bool has_meas_noise { false }
 

Constructor & Destructor Documentation

◆ BodyvelMeasurementType() [1/2]

mars::BodyvelMeasurementType::BodyvelMeasurementType ( )
default

◆ BodyvelMeasurementType() [2/2]

mars::BodyvelMeasurementType::BodyvelMeasurementType ( Eigen::Vector3d  velocity)
inline
31  : velocity_(std::move(velocity))
32  {
33  }
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d velocity_
Velocity [x y z].
Definition: bodyvel_measurement_type.h:27

Member Function Documentation

◆ get_csv_state_header_string()

static std::string mars::BodyvelMeasurementType::get_csv_state_header_string ( )
inlinestatic
36  {
37  std::stringstream os;
38  os << "t, ";
39  os << "v_x, v_y, v_z";
40 
41  return os.str();
42  }

◆ to_csv_string()

std::string mars::BodyvelMeasurementType::to_csv_string ( const double &  timestamp) const
inline
45  {
46  std::stringstream os;
47  os.precision(17);
48  os << timestamp;
49 
50  os << ", " << velocity_.x() << ", " << velocity_.y() << ", " << velocity_.z();
51 
52  return os.str();
53  }

Member Data Documentation

◆ velocity_

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d mars::BodyvelMeasurementType::velocity_

Velocity [x y z].


The documentation for this class was generated from the following file: