February 2020
Intermediate to advanced
432 pages
10h 50m
English
The mygopigo folder is ready so that we can create the package structure and place the files:
$ roscd mygopigo$ mkdir src$ cd src
The roscd ROS command is equivalent to the Linux bash cd command. Its advantage is that you only have to specify the package name in order to move to the package's folder, which is ~/catkin_ws/src/mygopigo/. Then, create a Python file to acquire data from the distance sensor:
$ nano distance-sensor.py
#!/usr/bin/env python# import the modulesfrom di_sensors.easy_distance_sensor import ...