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

#include </home/runner/work/mars_lib/mars_lib/source/mars/include/mars/sensors/position/position_sensor_state_type.h>

+ Inheritance diagram for mars::PositionSensorStateType:
+ Collaboration diagram for mars::PositionSensorStateType:

Public Member Functions

 PositionSensorStateType ()
 
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_ip_
 
- Public Attributes inherited from mars::BaseStates
int cov_size_
 

Constructor & Destructor Documentation

◆ PositionSensorStateType()

mars::PositionSensorStateType::PositionSensorStateType ( )
inline
26  : BaseStates(3) // cov size
27  {
28  p_ip_.setZero();
29  }
BaseStates(int cov_size)
Definition: base_states.h:27
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d p_ip_
Definition: position_sensor_state_type.h:24

Member Function Documentation

◆ get_csv_state_header_string()

static std::string mars::PositionSensorStateType::get_csv_state_header_string ( )
inlinestatic
32  {
33  std::stringstream os;
34  os << "t, ";
35  os << "p_ip_x, p_ip_y, p_ip_z";
36 
37  return os.str();
38  }

◆ to_csv_string()

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

Member Data Documentation

◆ p_ip_

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d mars::PositionSensorStateType::p_ip_

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