sensors.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020-2023 RaccoonLab.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 3.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Author: Dmitry Ponomarev <ponomarevda96@gmail.com>
17  */
18 
19 #ifndef SRC_SENSORS_SENSORS_HPP_
20 #define SRC_SENSORS_SENSORS_HPP_
21 
22 #include "attitude.hpp"
23 #include "barometer.hpp"
24 #include "battery.hpp"
26 #include "esc_status.hpp"
27 #include "fuel_tank.hpp"
28 #include "gnss.hpp"
29 #include "ice.hpp"
30 #include "imu.hpp"
31 #include "mag.hpp"
32 #include "velocity.hpp"
33 
34 #include "uavDynamicsSimBase.hpp"
35 
36 struct Sensors {
37  explicit Sensors(ros::NodeHandle* nh);
38  int8_t init(const std::shared_ptr<UavDynamicsSimBase>& uavDynamicsSim);
39  void publishStateToCommunicator(uint8_t dynamicsNotation);
40 
50 
54 
55 private:
56  geodetic_converter::GeodeticConverter geodeticConverter;
57  std::shared_ptr<UavDynamicsSimBase> _uavDynamicsSim;
58 };
59 
60 #endif // SRC_SENSORS_SENSORS_HPP_
MagSensor magSensor
Definition: sensors.hpp:49
GpsSensor gpsSensor
Definition: sensors.hpp:48
int8_t init(const std::shared_ptr< UavDynamicsSimBase > &uavDynamicsSim)
Definition: sensors.cpp:39
IceStatusSensor iceStatusSensor
Definition: sensors.hpp:45
FuelTankSensor fuelTankSensor
Definition: sensors.hpp:52
void publishStateToCommunicator(uint8_t dynamicsNotation)
Definition: sensors.cpp:92
ImuSensor imuSensor
Definition: sensors.hpp:46
std::shared_ptr< UavDynamicsSimBase > _uavDynamicsSim
Definition: sensors.hpp:57
BatteryInfoSensor batteryInfoSensor
Definition: sensors.hpp:53
Sensors(ros::NodeHandle *nh)
Definition: sensors.cpp:23
DiffPressureSensor diffPressureSensor
Definition: sensors.hpp:44
PressureSensor pressureSensor
Definition: sensors.hpp:42
geodetic_converter::GeodeticConverter geodeticConverter
Definition: sensors.hpp:56
TemperatureSensor temperatureSensor
Definition: sensors.hpp:43
VelocitySensor velocitySensor_
Definition: sensors.hpp:47
EscStatusSensor escStatusSensor
Definition: sensors.hpp:51
AttitudeSensor attitudeSensor
Definition: sensors.hpp:41


inno_vtol_dynamics
Author(s): Roman Fedorenko, Dmitry Ponomarev, Ezra Tal, Winter Guerra
autogenerated on Sat Jul 1 2023 02:13:44