ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
There are two ways to do this:
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.
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.