Class JoystickSwitchNode

Inheritance Relationships

Base Type

  • public Node

Class Documentation

class JoystickSwitchNode : public Node

A ROS2 node that toggles joystick control between two topics based on a button press.

This node subscribes to joystick input and publishes the commands to either the “ego_joy” or “opp_joy” topic, switching dynamically based on user interaction.

Public Functions

JoystickSwitchNode()

Constructor for the JoystickSwitchNode class.