The DeepRacer Interfaces ROS package is a foundational package that creates the custom service and message types that are used in the core AWS DeepRacer application. These services and messages defined are shared across the packages that are part of the AWS DeepRacer application. More details about the application and the components can be found here.
The source code is released under Apache 2.0 (https://aws.amazon.com/apache-2-0/).
More details about pre installed set of packages and libraries on the DeepRacer, and installing required build systems can be found in the Getting Started section of the AWS DeepRacer Opensource page.
The deepracer_inferfaces_pkg specifically depends on the following ROS2 packages as build and execute dependencies:
- rosidl_default_generators - The custom built interfaces rely on rosidl_default_generators for generating language-specific code.
- rosidl_default_runtime - The custom built interfaces rely on rosidl_default_runtime for using the language-specific code.
- sensor_msgs - This package defines messages for commonly used sensors, including cameras and scanning laser rangefinders.
- std_msgs - Standard ROS Messages including common message types representing primitive data types and other basic message constructs, such as multiarrays.
Open up a terminal on the DeepRacer device and run the following commands as root user.
-
Switch to root user before you source the ROS2 installation:
sudo su
-
Source the ROS2 Foxy setup bash script:
source /opt/ros/foxy/setup.bash
-
Create a workspace directory for the package:
mkdir -p ~/deepracer_ws cd ~/deepracer_ws
-
Clone the deepracer_interfaces_pkg on the DeepRacer device:
git clone https://github.com/awsdeepacer/aws-deepracer-interfaces-pkg.git
-
Resolve the deepracer_inferfaces_pkg dependencies:
cd ~/deepracer_ws/aws-deepracer-interfaces-pkg && rosdep install -i --from-path . --rosdistro foxy -y
-
Build the deepracer_interfaces_pkg:
cd ~/deepracer_ws/aws-deepracer-interfaces-pkg && colcon build --packages-select deepracer_interfaces_pkg
- AWS DeepRacer Opensource getting started: https://github.com/aws-deepracer/aws-deepracer-launcher/blob/main/getting-started.md