forked from eborghi10/create_autonomy
-
-
Notifications
You must be signed in to change notification settings - Fork 38
Local connection
Emiliano Borghi edited this page Jul 3, 2021
·
2 revisions
This page explain how to connect to the real robot with a laptop (not an Nvidia Jetson Nano).
This examples uses two USB devices:
- An RPLidar A2, and
- the iRobot Create 2
Configure Udev rules
You need to setup Udev rules so the Docker image can find the devices.
The .rules
files are stored in ca_bringup/scripts/rules
.
sudo cp roomba.rules /etc/udev/rules.d
sudo cp rplidar.rules /etc/udev/rules.d
sudo service udev reload
sudo service udev restart
After these steps, plug in the devices and check if you see /dev/roomba
and /dev/rplidar
as volumes in your PC.
If not, Docker won't be able to find them.
To properly setup Docker in your computer, follow this guide.
This example creates a map from an unknown environment with SLAM Gmapping. Uses the RPLidar A2 as sensing device and not the IMU because the PC doesn't support I2C devices.
export RVIZ=true
export IMU=false
export LASER=rplidar
export LOCALIZATION=slam
roslaunch ca_bringup complete.launch