(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Reading Sonar Sensor via Terminal

Description:

Tutorial Level: BEGINNER

Next Tutorial: Writing a Simple Subscriber for Sonar Sensor

Execute synchronisation nodes, to reach evarobot ros master.

# pc
> roslaunch master_discovery_fkie master_discovery.launch

# pc
> roslaunch master_sync_fkie master_sync.launch

evarobot_sonar publishes /sensor/sonar<n> topic where n is number of sensor. In this example, we will read sensor called 0.

# pc
> rostopic echo /sensor/sonar0

To get information about the topic

# pc
> rostopic info /sensor/sonar0

Wiki: evarobot_sonar/Tutorials/indigo/Reading Sonar Sensor via Terminal (last edited 2015-09-17 07:43:16 by makcakoca)