Re: [ros-users] handling multiple topics in Python

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Blaise Gassend
Date:  
To: ros-users
Subject: Re: [ros-users] handling multiple topics in Python
Try rostopic hz or rostopic echo to see if you are getting any gaps on
the /joy topic. How big are the gaps you are seeing?

On Thu, 2010-04-15 at 12:12 -0700, Patrick Bouffard wrote:
> 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
> <> 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
> >
> > https://code.ros.org/mailman/listinfo/ros-users
> >
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users