ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

There are two ways to do this:

  1. subscribe to the topic. This is the easy way. I highly recommend this method as apposed to the following. You will just take the message and use the parts you need. If you are using C++ or Java, you will use the variables like you would a struct.

  2. Please don't do this to yourself... The other method would be to interpret the echo as a string, and parse through it. This is extremely unnecessary, and will only slow things down.