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

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

+ Inheritance diagram for mars::VelocitySensorStateType:
+ Collaboration diagram for mars::VelocitySensorStateType:

Public Member Functions

 VelocitySensorStateType ()
 
std::string to_csv_string (const double &timestamp) const
 
- Public Member Functions inherited from mars::BaseStates
 BaseStates (int cov_size)
 

Static Public Member Functions

static std::string get_csv_state_header_string ()
 

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d p_iv_
 
- Public Attributes inherited from mars::BaseStates
int cov_size_
 

Constructor & Destructor Documentation

◆ VelocitySensorStateType()

mars::VelocitySensorStateType::VelocitySensorStateType ( )
inline
27  : BaseStates(3) // size of covariance
28  {
29  p_iv_.setZero();
30  }
BaseStates(int cov_size)
Definition: base_states.h:27
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d p_iv_
Definition: velocity_sensor_state_type.h:25

Member Function Documentation

◆ get_csv_state_header_string()

static std::string mars::VelocitySensorStateType::get_csv_state_header_string ( )
inlinestatic
33  {
34  std::stringstream os;
35  os << "t, ";
36  os << "p_iv_x, p_iv_y, p_iv_z";
37 
38  return os.str();
39  }

◆ to_csv_string()

std::string mars::VelocitySensorStateType::to_csv_string ( const double &  timestamp) const
inline
42  {
43  std::stringstream os;
44  os.precision(17);
45  os << timestamp;
46 
47  os << ", " << p_iv_(0) << ", " << p_iv_(1) << ", " << p_iv_(2);
48  return os.str();
49  }

Member Data Documentation

◆ p_iv_

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d mars::VelocitySensorStateType::p_iv_

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