Unity-based Oculus VR interface to AWS DeepRacer
-
Ensure that the DeepRacer unit is upgraded to ROS2 support, following following the instructions here.
-
SSH into the DeepRacer unit as
deepracer
-
Set up a ROS2 workspace under
/home/deepracer/developer_ws
. -
Make an
src
directory, and switch to it. Clone the ROS2 branch of the TCP endpoint project into the workspace:git clone https://github.com/Unity-Technologies/ROS-TCP-Endpoint.git -b main-ros2
-
Build the package:
colcon build
. -
Add the new package to the path:
source /home/deepracer/developer_ws/install/setup.bash
-
Execute the package:
ros2 run ros_tcp_endpoint default_server_endpoint --ros-args -p ROS_IP:=0.0.0.0
. This will launch the Unity TCP endpoint server on port 10000, bound to all network interfaces (required for external connection). -
For permanent operation, the following needs to be added to the
start_ros.sh
script:roslaunch ros_tcp_endpoint endpoint.launch
-
Note, DeepRacer is also running Ubuntu's firewall. To enable incoming connections to the ROS Unity TCP endpoint server, you'll need to execute:
sudo ufw allow 10000/tcp