This is a ROS publisher for an arduino-based button box.
It has automatic reconnection in case of loss of signal and publishes two ROS topics:
- /button_box/stream: An infinite stream publishing the button states via a standard sensor_msgs/Joy message. The casual implementation for ROS joysticks.
- /button_box/events: A topic publishing only changes, i.e. when buttons are pressed or released, via a custom ButtonEvent message.