February 2020
Intermediate to advanced
432 pages
10h 50m
English
Now that we have understood how the Python script integrates with ROS, we will execute it in one terminal as part of the ROS runtime environment using the following steps:
T1 $ roscoreT2 $ rosrun mygopigo distance-sensor.pyT3 $ rostopic echo /distance_sensor/distance
The first one launches the ROS master node. The second one is the script we have just explained, while the third allows us to watch messages published under the /distance_sensor/distance topic in real time. This is what you should see:
Read now
Unlock full access