#include </home/runner/work/mars_lib/mars_lib/source/mars/include/mars/sensors/mag/mag_sensor_state_type.h>
|
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d | mag_ |
|
Eigen::Quaterniond | q_im_ |
|
int | cov_size_ |
|
◆ MagSensorStateType()
mars::MagSensorStateType::MagSensorStateType |
( |
| ) |
|
|
inline |
28 {
31 }
BaseStates(int cov_size)
Definition base_states.h:27
Eigen::Quaterniond q_im_
Definition mag_sensor_state_type.h:25
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d mag_
Definition mag_sensor_state_type.h:24
◆ get_csv_state_header_string()
static std::string mars::MagSensorStateType::get_csv_state_header_string |
( |
| ) |
|
|
inlinestatic |
34 {
35 std::stringstream os;
36 os << "t, ";
37 os << "mag_w_x, mag_w_y, mag_w_z, ";
38 os << "q_im_w, q_im_x, q_im_y, q_im_z";
39
40 return os.str();
41 }
◆ to_csv_string()
std::string mars::MagSensorStateType::to_csv_string |
( |
const double & |
timestamp | ) |
const |
|
inline |
to_csv_string export state to single csv string
- Parameters
-
- Returns
- string format [mag q_wi]
49 {
50 std::stringstream os;
51 os.precision(17);
52 os << timestamp;
53
54 os <<
", " <<
mag_(0) <<
", " <<
mag_(1) <<
", " <<
mag_(2);
55 Eigen::Vector4d q_im =
q_im_.coeffs();
56 os << ", " << q_im(3) << ", " << q_im(0) << ", " << q_im(1) << ", " << q_im(2);
57
58 return os.str();
59 }
◆ mag_
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d mars::MagSensorStateType::mag_ |
◆ q_im_
Eigen::Quaterniond mars::MagSensorStateType::q_im_ |
The documentation for this class was generated from the following file: