mars_lib 0.1.0.2abe2576fe7f
Modular and Robust Sensor-Fusion
Loading...
Searching...
No Matches
position_sensor_state_type.h
Go to the documentation of this file.
1// Copyright (C) 2021 Christian Brommer, Control of Networked Systems, University of Klagenfurt, Austria.
2//
3// All rights reserved.
4//
5// This software is licensed under the terms of the BSD-2-Clause-License with
6// no commercial use allowed, the full terms of which are made available
7// in the LICENSE file. No license in patents is granted.
8//
9// You can contact the author at <christian.brommer@ieee.org>
10
11#ifndef POSITIONSENSORSTATETYPE_H
12#define POSITIONSENSORSTATETYPE_H
13
15#include <Eigen/Dense>
16
17namespace mars
18{
20{
21public:
22 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
23
24 Eigen::Vector3d p_ip_;
25
27 {
28 p_ip_.setZero();
29 }
30
31 static std::string get_csv_state_header_string()
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 }
39
40 std::string to_csv_string(const double& timestamp) const
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 }
50};
51} // namespace mars
52#endif // POSITIONSENSORSTATETYPE_H
The BaseStates class is used to ensure that all sensor data classes define a covariance size for the ...
Definition base_states.h:23
Definition position_sensor_state_type.h:20
PositionSensorStateType()
Definition position_sensor_state_type.h:26
std::string to_csv_string(const double &timestamp) const
Definition position_sensor_state_type.h:40
static std::string get_csv_state_header_string()
Definition position_sensor_state_type.h:31
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::Vector3d p_ip_
Definition position_sensor_state_type.h:24
Definition buffer.h:27