carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.17k stars 3.61k forks source link

Add a micromobility vehicle. #5347

Open ll7 opened 2 years ago

ll7 commented 2 years ago

Add a micromobility vehicle in carla.

ll7 commented 2 years ago

Preperation:

ll7 commented 2 years ago

First approach is to implement the micromobility vehicle as a normal vehicle. Integrate more accurate physics with https://github.com/ORNL-Modelica/UnrealEngine-FMIPlugin later.

ll7 commented 2 years ago

Unreal directory

~/git/UnrealEngine_4.26

Building under Ubuntu 20.04

https://carla.readthedocs.io/en/latest/build_linux/#system-requirements

https://github.com/carla-simulator/carla/blob/master/Docs/build_linux.md?plain=1#L40

remove python as a package for ubuntu 20

sudo apt-get install build-essential clang-8 lld-8 g++-7 cmake ninja-build libvulkan1 python3-dev python3-pip libpng-dev libtiff5-dev libjpeg-dev tzdata sed curl unzip autoconf libtool rsync libxml2-dev git

warning for clang:

sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-8/bin/clang++ 180 &&
> sudo update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-8/bin/clang 180
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/llvm-8/bin/clang++ because link group clang++ is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/llvm-8/bin/clang because link group clang is broken

only use pip3:

pip3 install --user -Iv setuptools==47.3.1 &&
pip3 install --user distro &&
pip3 install --user wheel auditwheel

start your editor

cd ~/git/UnrealEngine_4.26/Engine/Binaries/Linux && ./UE4Editor
export UE4_ROOT=~/git/UnrealEngine_4.26
cd ~/git/carla-scoomatic/carla
make PythonAPI ARGS="--python-version=3.8"
ll7 commented 2 years ago

Previous documentation

https://forum.carla.org/t/sharing-our-progress-on-implementing-an-autonomous-differential-drive-micromobility-vehicle-in-the-carla-environment/327

https://github.com/ll7/carla/tree/scoomatic/reimplementation

https://github.com/ll7/scoomatic-hoverboard

https://git.rz.uni-augsburg.de/luttkule/scoomatic-carla/-/blob/master/Dokumentation/Dokumentation.pdf

https://git.rz.uni-augsburg.de/luttkule/scoomatic-carla

https://continuebreak.com/articles/how-rig-vehicle-blender-28-ue4/

ll7 commented 2 years ago

Current tutorial to add a vehicle:

https://carla.readthedocs.io/en/latest/tuto_A_add_vehicle/

ll7 commented 2 years ago

start the editor

export UE4_ROOT=~/git/UnrealEngine_4.26
cd ~/git/carla-scoomatic/carla
make launch
ll7 commented 2 years ago

https://carla.readthedocs.io/en/latest/tuto_A_add_vehicle/#import-and-configure-the-vehicle

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.