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,
30 
33 
36 
39 
41  MAG_ENABLE,
42 };
43 
45  ScenarioManager(ros::NodeHandle& node, Actuators& actuators, Sensors& sensors) :
46  _node(node), _actuators(actuators), _sensors(sensors) {}
47  void init();
48 private:
53 
54  void scenarioCallback(std_msgs::UInt8 msg);
55 };
56 
57 #endif // UAV_DYNAMICS_SCENARIOS_HPP
void init(const M_string &remappings)
ScenarioManager(ros::NodeHandle &node, Actuators &actuators, Sensors &sensors)
Definition: scenarios.hpp:45
ros::Subscriber _scenarioSub
Definition: scenarios.hpp:49
Actuators & _actuators
Definition: scenarios.hpp:51
Sensors & _sensors
Definition: scenarios.hpp:52
Scenario
Definition: scenarios.hpp:27
ros::NodeHandle & _node
Definition: scenarios.hpp:50


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