Running the Robot
SSH
The easiest way to access the Jetson is with SSH. Make sure you know the username and password for your Jetson.
ssh username@192.168.55.1is the default way to SSH through a micro-USB cablessh username@jetsonnamecan be used if connected to same network
Running Gym2Real
cdtoworkspacefoldercolcon build --symlink-installto build packages (only necessary the first time)sudo suto start root shell (required for some features like setting real-time priority)source install/setup.bashexport ROS_DOMAIN_ID=1allows exchange of messages to other PC on the same network with the same ROS_DOMAIN_ID (use your favourite number)ros2 launch controller controller.launch.pystarts the nodes (controller, IMU driver, motor driver)
Uploading Model
- Place trained model in
.onnxformat inworkspace/cfg - Modify
workspace/cfg/config.yamlto add your controller (if the model has different observation size or action size, modifications will have to be made toworkspace/controller/src/controller_node.cppto handle the changes)
Optional Steps
sudo crontab -ecan be used to add a startup script that runs whenever the Jetson boots