The On-board Computer
Last updated
Last updated
We are almost done!
The last step before running policy on the real robot is to set up the environment on the on-board NUC computer.
We find that Ubuntu 22.04 works well with our software and hardware stack on the robot. Follow to install Ubuntu 22.04 on the NUC computer.
As the first step, we need to initialize the CAN transport on the Linux side. To do this, we have prepared a script:
To test connection to individual actuator, run this command.
--port
corresponds to the port of the CAN device on linux. With the two arms and legs all connected, it should be can[0,1,2,3]
--id
corresponds to the CAN ID of the device. It should be in range [1..14]
.
Alternatively, to test connection to all the motors, run this script.
To test connection to the IMU, run this command.
Run this script to launch the Python program that reads the joystick and broadcast the reading on UDP port.
There are two ways to run the lowlevel code: C codebase and Python codebase.
For locomotion tasks, we recommend to use the C codebase for better realtime gaurantee. The C codebase is under ./csrc/
directory.
On the on-board computer, do the following:
[Coming soon]
If running into performance issues where the USB-CAN adapter cannot maintain the required communication frequency, we can use the real-time kernel instead.