0
$\begingroup$

Rosanswers logo

I ran into a weird behavior (i.e. crashing my robot uncontrollable into a wall) because while operating the robot, the battery shutdown. Due to the autorepeat function inside the joy_node, the last command was infinitely repeated until crash.

The question here is, if there is any option for the xbox controller to find out if signal is lost or still available.


Originally posted by Karsten on ROS Answers with karma: 643 on 2015-11-04

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

I had a similar problem with the xbox controller publishing garbage messages on startup and messing things up. I switched to the xboxdrv driver and have no more problems. It looks like it also publishes a no-buttons-pushed joy message when I take the battery out.

Here's how to set it up.

NOTE: It switches the pad buttons to be axes, so you'll have to change up your nodes using the joy message. EDIT: I hadn't read far enough in the man page, but it's highly configurable.


Originally posted by thebyohazard with karma: 3562 on 2015-12-29

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.