mars_lib 0.1.0.2abe2576fe7f
Modular and Robust Sensor-Fusion
Loading...
Searching...
No Matches
sensor_abs_class.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 SENSORABSCLASS_H
12#define SENSORABSCLASS_H
13
15#include <string>
16
17namespace mars
18{
20{
21public:
22 int id_{ -1 };
23 std::string name_;
24 bool is_initialized_{ false };
25 bool do_update_{ true };
26 int type_{ -1 };
27 bool const_ref_to_nav_{ true };
28 bool ref_to_nav_given_{ false };
30
34 friend std::ostream& operator<<(std::ostream& out, const SensorAbsClass& sensor)
35 {
36 out << "\tSensor: " << sensor.name_ << std::endl;
37 out << "\tInitialized: " << sensor.is_initialized_ << std::endl;
38 out << "\tDo update: " << sensor.do_update_ << std::endl;
39 out << "\tReference to nav: " << sensor.const_ref_to_nav_ << std::endl;
40 out << "\tUse dynamic noise: " << sensor.use_dynamic_meas_noise_ << std::endl;
41 return out;
42 }
43};
44} // namespace mars
45#endif // SENSORABSCLASS_H
Definition sensor_abs_class.h:20
int id_
Definition sensor_abs_class.h:22
std::string name_
Name of the individual sensor instance.
Definition sensor_abs_class.h:23
bool is_initialized_
True if the sensor has been initialized.
Definition sensor_abs_class.h:24
bool do_update_
True if updates should be performed with the sensor.
Definition sensor_abs_class.h:25
friend std::ostream & operator<<(std::ostream &out, const SensorAbsClass &sensor)
operator << Overload the << operator for easy printing of the sensor information
Definition sensor_abs_class.h:34
bool const_ref_to_nav_
True if the reference should not be estimated.
Definition sensor_abs_class.h:27
bool ref_to_nav_given_
True if the reference to the navigation frame is given by initial calibration.
Definition sensor_abs_class.h:28
int type_
Future feature, holds information such as position or orientation for highlevel decissions.
Definition sensor_abs_class.h:26
bool use_dynamic_meas_noise_
True if dynamic noise values from measurements should be used.
Definition sensor_abs_class.h:29
Definition sensor_interface.h:23
Definition buffer.h:27