ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Upon further investigation, it is linked to ROS; I naively hadn't given the full details as I thought it was not necessary.

The script is being executed in a callback on a button press from the /joy topic. The button press event lasts for several frames which is normal however this means that the script is executed several times.

Setting the argument queue_size=1 resolves the issue although I need to test if this causes issues with other inputs from the joystick.

Upon further investigation, it is linked to ROS; I naively hadn't given the full details as I thought it was not necessary.

The script is being executed in a callback on a button press from the /joy topic. The button press event lasts for several frames which is normal however this means that the script is executed several times.

Setting the argument queue_size=1 when initialising the subscriber for the /joy topic resolves the issue although I need to test if this causes issues with other inputs from the joystick.