This project aims to develop a high-fidelity digital twin of a 4WD vehicle, where each wheel's torque is individually controlled and steering is achieved through a hinge-based system. This innovative approach eliminates reliance on standard plugins, allowing the vehicle's movement and trajectory to be determined solely by its interaction with the terrain.
To demonstrate the capabilities of this digital twin, I've created a simple test track environment, marked by cones, where the vehicle's performance can be evaluated under various conditions.
Since it use a submodules that contain the models of the camera and lidar, clone this repo using git clone --recurse-submodules <this-repo-url>
- Go inside the cloned folder
- Create an image from the Dockerfile:
docker build -t psd_noble_jazzy .
- Run the container:
docker run -it --gpus all --user ubuntu --network=host --ipc=host -v $PWD/psd_ws:/home/ubuntu/psd_ws -v /tmp/.X11-unix:/tmp/.X11-unix:rw --env=DISPLAY -v /dev:/dev --device-cgroup-rule="c *:* rmw" --name psd_container psd_noble_jazzy
- Achtung! Once inside, only for the first time go to deps/ folder and launch
bash first_launch_script.sh
: this will setup everything for you and configure all the dependencies. - CTRL + D to exit the container`
At every pc reboot you need to do docker start psd_container
After that you can access the container with docker exec -it psd_container /bin/bash
To be sure that everything is setup well, check the README in the deps/ folder