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::VelocityMeasurementType Class Reference

#include </home/runner/work/mars_lib/mars_lib/source/mars/include/mars/sensors/velocity/velocity_measurement_type.h>

+ Inheritance diagram for mars::VelocityMeasurementType:
+ Collaboration diagram for mars::VelocityMeasurementType:

Public Member Functions

 VelocityMeasurementType ()=default
 
 VelocityMeasurementType (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

◆ VelocityMeasurementType() [1/2]

mars::VelocityMeasurementType::VelocityMeasurementType ( )
default

◆ VelocityMeasurementType() [2/2]

mars::VelocityMeasurementType::VelocityMeasurementType ( Eigen::Vector3d  velocity)
inline
30  : velocity_(std::move(velocity))
31  {
32  }
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d velocity_
Velocity [x y z].
Definition: velocity_measurement_type.h:26

Member Function Documentation

◆ get_csv_state_header_string()

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

◆ to_csv_string()

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

Member Data Documentation

◆ velocity_

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d mars::VelocityMeasurementType::velocity_

Velocity [x y z].


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