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

#include </home/runner/work/mars_lib/mars_lib/source/mars/include/mars/sensors/pressure/pressure_sensor_state_type.h>

+ Inheritance diagram for mars::PressureSensorStateType:
+ Collaboration diagram for mars::PressureSensorStateType:

Public Member Functions

 PressureSensorStateType ()
 
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_
 translation between IMU and Pressure sensor More...
 
double bias_p_
 bias of pressure sensor More...
 
- Public Attributes inherited from mars::BaseStates
int cov_size_
 

Constructor & Destructor Documentation

◆ PressureSensorStateType()

mars::PressureSensorStateType::PressureSensorStateType ( )
inline
30  : BaseStates(4) // cov size
31  {
32  p_ip_.setZero();
33  bias_p_ = 0.0;
34  }
BaseStates(int cov_size)
Definition: base_states.h:27
double bias_p_
bias of pressure sensor
Definition: pressure_sensor_state_type.h:27
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d p_ip_
translation between IMU and Pressure sensor
Definition: pressure_sensor_state_type.h:26

Member Function Documentation

◆ get_csv_state_header_string()

static std::string mars::PressureSensorStateType::get_csv_state_header_string ( )
inlinestatic
37  {
38  std::stringstream os;
39  os << "t, ";
40  os << "p_ip_x, p_ip_y, p_ip_z, ";
41  os << "bias_p";
42 
43  return os.str();
44  }

◆ to_csv_string()

std::string mars::PressureSensorStateType::to_csv_string ( const double &  timestamp) const
inline
47  {
48  std::stringstream os;
49  os.precision(17);
50  os << timestamp;
51 
52  os << ", " << p_ip_(0) << ", " << p_ip_(1) << ", " << p_ip_(2);
53  os << ", " << bias_p_;
54 
55  return os.str();
56  }

Member Data Documentation

◆ p_ip_

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d mars::PressureSensorStateType::p_ip_

translation between IMU and Pressure sensor

◆ bias_p_

double mars::PressureSensorStateType::bias_p_

bias of pressure sensor


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