- After logging into the deepracer computer, check the internet connection using the command:
$ ping google.com
- If the ping works, you are done!
- If the ping does not work, try to ping Google's public IP addresses directly
$ ping 8.8.8.8
- If this ping works, add Google's public DNS server to the /etc/resolv.conf file on the deepracer computer:
$ sudo nano /etc/resolv.conf
- Add the following line to the resolv.conf file
nameserver 8.8.8.8
- Save the file and exit
$ control-O
$ Enter
$ control-X
- Check ping again
$ ping google.com
- If ping still does not work, give up
The ros2 package teleop_pkg
is used to teleoperate the deepracer. The following steps outline how to use the package to remotely drive the deepracer.
- Start up the deepracer following the steps above
- Enter superuser mode
$ sudo su
- Build the ros2 workspace
$ cd Desktop/ros2_ws
$ colcon build
- Start the ros2 nodes on the deepracer
$ cd /opt/aws/deepracer
$ source start_ros.sh
- Open another terminal. Enter superuser mode again
$ sudo su
- Source the ros2 workspace
$ cd Desktop/ros2_ws/src
$ source install/setup.bash
- Run the teleoperation node from src
$ ros2 run teleop_pkg teleop_keyboard_publisher
- Use the keyboard to drive the robot!