Re: [ros-users] SICK LMS Subscriber Node

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Brian Gerkey
Date:  
To: ros-users
Subject: Re: [ros-users] SICK LMS Subscriber Node
On Thu, Jul 15, 2010 at 12:07 PM, Rishi Bedi <> wrote:
> Hi Morgan,
> Okay -- say I wanted to read in just the range values from sicklms -- how
> can I just grab those? When I use rostopic echo /scan, the ranges show up as
> a list within brackets - is there a way I can pick out data from a topic my
> node is subscribing to? Sorry if I'm being a bit dense -- I'm not well
> versed on handling data types in C++.


If you prefer not to think about data types, you can write in Python
instead. There's a parallel tutorial for writing Python subscribers:

http://www.ros.org/wiki/ROS/Tutorials/WritingPublisherSubscriber%28python%29#rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.Writing_the_Subscriber_Node

    brian.