Thanks for that code, Morgan -- it works now and makes sense. <br>Brian - I would prefer to use Python, but I'm a little confused about how the ROS package file structure works with Python. It was very clear to me that for C++ source files in the sicktoolbox_wrapper package, I needed to add certain lines to the CMakeLists.txt file, and put it in a certain directory. Where do Python files go, and do I need to add them to the makefile and just re-run 'make', like I do for C++ files? Or is there something else I need to for Python files?<br>
Best,<br>Rishi<br><br clear="all">Rishi Bedi<br><a href="mailto:rbedi100@gmail.com">rbedi100@gmail.com</a><br>
<br><br><div class="gmail_quote">On Thu, Jul 15, 2010 at 3:46 PM, Brian Gerkey <span dir="ltr"><<a href="mailto:gerkey@willowgarage.com">gerkey@willowgarage.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Thu, Jul 15, 2010 at 12:07 PM, Rishi Bedi <<a href="mailto:rbedi100@gmail.com">rbedi100@gmail.com</a>> wrote:<br>
> Hi Morgan,<br>
> Okay -- say I wanted to read in just the range values from sicklms -- how<br>
> can I just grab those? When I use rostopic echo /scan, the ranges show up as<br>
> a list within brackets - is there a way I can pick out data from a topic my<br>
> node is subscribing to? Sorry if I'm being a bit dense -- I'm not well<br>
> versed on handling data types in C++.<br>
<br>
</div>If you prefer not to think about data types, you can write in Python<br>
instead.  There's a parallel tutorial for writing Python subscribers:<br>
<br>
<a href="http://www.ros.org/wiki/ROS/Tutorials/WritingPublisherSubscriber%28python%29#rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.Writing_the_Subscriber_Node" target="_blank">http://www.ros.org/wiki/ROS/Tutorials/WritingPublisherSubscriber%28python%29#rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.Writing_the_Subscriber_Node</a><br>

<font color="#888888"><br>
        brian.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br>