joystick output not reliable
Using joystick to drive turtlesim, he goes a ways then stops. If I move the stick a bit, he'll start up again. This may be a similar problem to seeing the numbers zero out when I run a full robot stack, with ROS_controls, and echo cmd_vel output to the terminal. Numbers look good for five seconds but then go to zero at unexpected times and at different stick angles. Is ROS failing me or is it the hardware? Using jstest the numbers stay looking good. Is it a problem with the publishing rate in hertz?
Edit:
<launch>
<node pkg="turtlesim" type="turtlesim_node" name="turtlesim" respawn="true"/>
<node pkg="teleop_twist_joy" type="teleop_node" name="teleop_twist_joy">
<remap from="cmd_vel" to="turtle1/cmd_vel"/>
</node>
<node pkg="joy" type="joy_node" name="joy_node"/>
</launch>
The above is for the turtlesim test. The stack for actual robot is RosJet from here: https://github.com/NVIDIAGPUTeachingK... .
Thanks for help!
This sounds to me like a joystick device being opened in 'event mode' and using a motion controller with an integrated (and enabled) command time-out (ie: no new
Twist
in X sec -> stop).Can you describe the full setup you have? Which nodes are involved in the teleop dataflow?
I've moved your comments to your original question, as comments are not suited for showing launch files. Please always update your original question in these cases using the
edit
button/link.