File joystick_switch.hpp
↰ Parent directory (include/joystick_switch
)
This header file defines the Class JoystickSwitchNode class, which implements a ROS2 node for switching joystick control between the ego vehicle and the opponent vehicle.
Definition (include/joystick_switch/joystick_switch.hpp
)
Detailed Description
This class provides functionality for subscribing to joystick input, toggling between control topics based on a button press, and publishing the joystick commands to the appropriate topic.
Includes
rclcpp/rclcpp.hpp
sensor_msgs/msg/joy.hpp
string