[ros-users] handling multiple topics in Python

Patrick Bouffard patrick.m.bouffard at gmail.com
Thu Apr 15 19:12:04 UTC 2010


Thanks all for the responses, that gives me a few things to try.

Regarding the joystick: I'm using joy_node from the joy package, and
setting the autorepeat_rate parameter, so I should be getting a steady
stream of joy messages, which I mostly do but sometimes there is a
long gap. My suspicion is that it's my code that is to blame for that
though.

I'll hack on this a bit more and report back..

Cheers,
Pat

On Thu, Apr 15, 2010 at 10:59 AM, Blaise Gassend
<blaise at willowgarage.com> wrote:
>> Rospy replaces the signal handler for SIGINT.  A running loop in your
>> main thread will no longer be interrupted with a KeyboardInterrupt.
>> Instead you should check rospy.is_shutdown() as a condition of your
>> loop.
>
> Also, if you are using threads, SIGINT will only kill one of them even
> without rospy. You have to make sure that each thread exits after a
> KeyboardInterrupt (or after rospy.is_shutdown() goes true in the case of
> rospy).
>
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>



More information about the ros-users mailing list