Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
RemoteControl.hpp
Go to the documentation of this file.
1
#ifndef REMOTE_CONTROL_HPP
2
#define REMOTE_CONTROL_HPP
3
4
#include <memory>
5
#include <mutex>
6
7
#include <rclcpp/rclcpp.hpp>
8
#include <
galaxis/messages.hpp
>
9
#include <
galaxis/linatypes.hpp
>
10
11
#include <memory>
12
13
class
RemoteControl
:
public
rclcpp::Node {
14
private
:
15
float
m_speed
= 1.f;
16
float
m_yaw
= 0.f;
17
bool
m_reset
=
false
;
18
bool
m_remoteEnabled
=
false
;
19
20
// Publishers
21
rclcpp::Publisher<SimulationVehicleControlType>::SharedPtr
m_publisherSPtr
;
22
23
public
:
24
RemoteControl
();
25
~RemoteControl
();
26
27
private
:
28
void
loop
();
29
void
sendControlInputs
();
30
};
31
32
#endif // REMOTE_CONTROL_HPP
RemoteControl::RemoteControl
RemoteControl()
Definition:
RemoteControl.cpp:13
RemoteControl::loop
void loop()
Definition:
RemoteControl.cpp:26
RemoteControl::m_yaw
float m_yaw
Definition:
RemoteControl.hpp:16
linatypes.hpp
RemoteControl::m_reset
bool m_reset
Definition:
RemoteControl.hpp:17
RemoteControl::~RemoteControl
~RemoteControl()
Definition:
RemoteControl.cpp:22
RemoteControl::m_speed
float m_speed
Definition:
RemoteControl.hpp:15
RemoteControl::sendControlInputs
void sendControlInputs()
Definition:
RemoteControl.cpp:92
RemoteControl::m_publisherSPtr
rclcpp::Publisher< SimulationVehicleControlType >::SharedPtr m_publisherSPtr
Definition:
RemoteControl.hpp:21
RemoteControl::m_remoteEnabled
bool m_remoteEnabled
Definition:
RemoteControl.hpp:18
messages.hpp
RemoteControl
Definition:
RemoteControl.hpp:13
nodes
SimulationAdapter
include
remotecontrol
RemoteControl.hpp
Generated by
1.8.17