src
scenarios.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 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 UAV_DYNAMICS_SCENARIOS_HPP
20
#define UAV_DYNAMICS_SCENARIOS_HPP
21
22
#include <
ros/ros.h
>
23
#include <std_msgs/UInt8.h>
24
#include <
actuators.hpp
>
25
#include <
sensors.hpp
>
26
27
enum class
Scenario
{
28
BARO_DISABLE
= 0,
29
BARO_ENABLE
,
30
31
DIFFERENTIAL_PRESSURE_DISABLE
,
32
DIFFERENTIAL_PRESSURE_ENABLE
,
33
34
GNSS_DISABLE
,
35
GNSS_ENABLE
,
36
37
ICE_START_STALL_EMULATION
,
38
ICE_STOP_STALL_EMULATION
,
39
40
MAG_DISABLE
,
41
MAG_ENABLE
,
42
};
43
44
struct
ScenarioManager
{
45
ScenarioManager
(
ros::NodeHandle
& node,
Actuators
& actuators,
Sensors
& sensors) :
46
_node(node), _actuators(actuators), _sensors(sensors) {}
47
void
init
();
48
private
:
49
ros::Subscriber
_scenarioSub
;
50
ros::NodeHandle
&
_node
;
51
Actuators
&
_actuators
;
52
Sensors
&
_sensors
;
53
54
void
scenarioCallback(std_msgs::UInt8 msg);
55
};
56
57
#endif // UAV_DYNAMICS_SCENARIOS_HPP
ros::NodeHandle
Scenario::BARO_DISABLE
actuators.hpp
init
void init(const M_string &remappings)
Scenario::DIFFERENTIAL_PRESSURE_DISABLE
Scenario::MAG_DISABLE
sensors.hpp
ScenarioManager::ScenarioManager
ScenarioManager(ros::NodeHandle &node, Actuators &actuators, Sensors &sensors)
Definition:
scenarios.hpp:45
Scenario::GNSS_DISABLE
Actuators
Definition:
actuators.hpp:26
Scenario::BARO_ENABLE
Scenario::ICE_START_STALL_EMULATION
ros::Subscriber
ScenarioManager::_scenarioSub
ros::Subscriber _scenarioSub
Definition:
scenarios.hpp:49
ScenarioManager
Definition:
scenarios.hpp:44
Scenario::ICE_STOP_STALL_EMULATION
Scenario::GNSS_ENABLE
ScenarioManager::_actuators
Actuators & _actuators
Definition:
scenarios.hpp:51
ros.h
Scenario::MAG_ENABLE
Scenario::DIFFERENTIAL_PRESSURE_ENABLE
ScenarioManager::_sensors
Sensors & _sensors
Definition:
scenarios.hpp:52
Scenario
Scenario
Definition:
scenarios.hpp:27
ScenarioManager::_node
ros::NodeHandle & _node
Definition:
scenarios.hpp:50
Sensors
Definition:
sensors.hpp:36
inno_vtol_dynamics
Author(s): Roman Fedorenko, Dmitry Ponomarev, Ezra Tal, Winter Guerra
autogenerated on Sat Jul 1 2023 02:13:44