.. _file_include_joystick_switch_joystick_switch.hpp: File joystick_switch.hpp ======================== |exhale_lsh| :ref:`Parent directory ` (``include/joystick_switch``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS This header file defines the :ref:`exhale_class_classJoystickSwitchNode` class, which implements a ROS2 node for switching joystick control between the ego vehicle and the opponent vehicle. .. contents:: Contents :local: :backlinks: none 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`` Classes ------- - :ref:`exhale_class_classJoystickSwitchNode`