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

#include </home/runner/work/mars_lib/mars_lib/source/mars/include/mars/sensors/empty/empty_sensor_state_type.h>

+ Inheritance diagram for mars::EmptySensorStateType:
+ Collaboration diagram for mars::EmptySensorStateType:

Public Member Functions

 EmptySensorStateType ()
 
std::string to_csv_string (const double &timestamp) const
 to_csv_string export state to single csv string More...
 
- 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 value_
 
- Public Attributes inherited from mars::BaseStates
int cov_size_
 

Constructor & Destructor Documentation

◆ EmptySensorStateType()

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

Member Function Documentation

◆ get_csv_state_header_string()

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

◆ to_csv_string()

std::string mars::EmptySensorStateType::to_csv_string ( const double &  timestamp) const
inline

to_csv_string export state to single csv string

Parameters
timestamp
Returns
string format [value]
46  {
47  std::stringstream os;
48  os.precision(17);
49  os << timestamp;
50 
51  os << ", " << value_(0) << ", " << value_(1) << ", " << value_(2);
52  return os.str();
53  }

Member Data Documentation

◆ value_

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d mars::EmptySensorStateType::value_

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