Closed dylan-gonzalez closed 2 months ago
Installing all dependencies using the anisible script ./setup-dev-env.sh missing python 3.10 venv so installed it with
sudo apt install python3.10-venv
rerun ./setup-dev-env.sh
going to install dependencies from https://autowarefoundation.github.io/autoware-documentation/main/installation/autoware/source-installation/ nvidia kernel conflict reinstalling and cleaning nvidia packages using the commands from this site https://forums.developer.nvidia.com/t/ubuntu-and-nvidia-provided-packages-conflict-breaking-installation/259150/11 now building workspace with colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
Pretty much follow the source installation instructions and try to run some of the planning sims
Autoware is installed without any issues (probably bold to assume that it works, me and @tzdu will run some tests later this or next week to verify that). Original Autoware repo was used, and the solution provided should work for the MCAV fork as well (will check it later on a VM)
Clone the repository
MCAV fork : git clone https://github.com/Monash-Connected-Autonomous-Vehicle/autoware.git
Autoware original: git clone https://github.com/autowarefoundation/autoware.git
Run ./setup-dev-env.sh
while in autoware
directory on Linux
It should give an error about the ccache
failing, which is already there. So error can be ignored. If ccache
is not there, it should be installed manually.
There are 2 ROS dependencies (one if you are using Autoware fork) that ruins the rosdep install
, those are:
a. autoware_internal_msgs
which can be fixed by copy-pasting the content of autoware.repos
in Autoware fork into the autoware.repos
in local directory (i.e on Linux) [I'll prly make a PR on that matter, so it is in our fork as well]
b. libqt5-charts-dev
can be downloaded via sudo apt install libqt5charts5-dev
After that rodep install
should run appropriately without any warnings.
The other important thing is to be careful with is the colcon build
. When you run colcon build
on Alienware it attempts to occupy all threads on the laptop, so it will lead to a deadlock at some point and cause Alienware to crash. To resolve that add --parallel-workers number-of-threads
flag at the end. Which basically sets a limit on treads that can be used by colcon
(as far as I know the safe maximum is 8-10 threads).
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release --parallel-workers 8
Error while trying to run autoware, reinstalling artifacts and rebuilding the environment
Autoware is working now and sims run smoothly on Twizy. I had to resort to docker installation which is outlined here:
Pretty much follow the outlined instructions, however in some cases when you have several options, chose the following:
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release --parallel-workers 8
, not to crash the device.Apart from that everything is straightforward
You will still need to download libqt5-charts-dev via sudo
apt install libqt5charts5-dev`
And yeah, ignore ccache error while running ansible script.
Run source ~/autoware/install/setup.bash
to verify that autoware has been installed correctly. And after that you can proceed to simulations planning
Planning to run more sims in the following week with @tzdu
There is an Alienware laptop inside the Twizy that will be the Twizy's main compute
Goal: Install Autoware on this laptop. Make sure to use the MCAV forks of Autoware.