docker pull registry.cn-guangzhou.aliyuncs.com/ddt_robot/ubuntu:webot2023b-v1
sudo docker run -v path/above/your/project:/mnt/dev -w /mnt/dev --rm --gpus all --net=host --privileged -e DISPLAY=$DISPLAY -e QT_X11_NO_MITSHM=1 -e CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda -it registry.cn-guangzhou.aliyuncs.com/ddt_robot/ubuntu:webot2023b-v1
# For example: Dowloads is the directory above the project tita_rl_sim2sim2real
sudo docker run -v ~/Downloads:/mnt/dev -w /mnt/dev --rm --gpus all --net=host --privileged -e DISPLAY=$DISPLAY -e QT_X11_NO_MITSHM=1 -e CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda -it registry.cn-guangzhou.aliyuncs.com/ddt_robot/ubuntu:webot2023b-v1
webots
source /opt/ros/humble/setup.bash
ros2 topic list
git clone git@github.com:DDTRobot/webots2023b_ros2_docker.git
cp -r webots_ros2 path/to/your/project
./start_docker #start the docker
cd webots_ros2
colcon build
source install/setup.bash
#In /mnt/dev :
cd tita_rl_sim2sim2real
source /opt/ros/humble/setup.bash && colcon build --packages-up-to locomotion_bringup webots_bridge template_ros2_controller tita_controller joy_controller keyboard_controller
apt update
apt install ros-humble-pinocchio
#Then delete the build file and build again
#Add the following in your ~/.bashrc:
xhost +
#In docker : /mnt/dev, convert the onnx to .engine:
/usr/src/tensorrt/bin/trtexec --onnx=your_onnx.onnx --saveEngine=your_engine.engine
# /mnt/dev is the path in your docker, not int the host
cuda_test_ = std::make_shared<CudaTest>("/mnt/dev/model_gn.engine");