Improbable-AI / walk-these-ways

Sim-to-real RL training and deployment tools for the Unitree Go1 robot.
https://gmargo11.github.io/walk-these-ways/
Other
492 stars 129 forks source link

Build docker container for different version of JetPack #29

Closed vassil-atn closed 1 year ago

vassil-atn commented 1 year ago

Hi,

I would like to build the docker container on my own for a slightly different JetPack version (our Go1 has L4T R32.4.4). Did you install ROS (melodic) on it (as those commands are commented out and there's no install_scripts/install_ros.sh in the repo)?

I am getting some incompatibility issues when I try mixing pytorch with ros melodic, so I was wondering if/how you managed to get it to work?

Thank you!

gmargo11 commented 1 year ago

Hi @Vassil17 ,

It shouldn't be necessary to install ROS in the deployment docker container for this project. You should be able to build the Dockerfile as-is on your Jetson, modifying line 3 (https://github.com/Improbable-AI/walk-these-ways/blob/master/go1_gym_deploy/docker/Dockerfile#L3) to match your L4T version.

I haven't tried mixing ROS with this version of the codebase, so unfortunately am not familiar with the dependency issues that might arise if you try adding it. If you need ROS, ideally, maybe you can find a pre-built base image for Jetson that has ROS and l4t-pytorch both installed? But I haven't looked

-Gabe

vassil-atn commented 1 year ago

Hi @Vassil17 ,

It shouldn't be necessary to install ROS in the deployment docker container for this project. You should be able to build the Dockerfile as-is on your Jetson, modifying line 3 (https://github.com/Improbable-AI/walk-these-ways/blob/master/go1_gym_deploy/docker/Dockerfile#L3) to match your L4T version.

I haven't tried mixing ROS with this version of the codebase, so unfortunately am not familiar with the dependency issues that might arise if you try adding it. If you need ROS, ideally, maybe you can find a pre-built base image for Jetson that has ROS and l4t-pytorch both installed? But I haven't looked

-Gabe

Hi @gmargo11,

Thanks, that seems to work!

For others stumbling upon this, I couldn't get ROS melodic to work with pytorch, possibly due to the python 2 vs python 3 requirements that the two have.