Install Autoware PX2 - AD-EYE/AD-EYE_Core GitHub Wiki
NOTE: THIS GUIDE IS OUTDATED SINCE 2019 (STEPS BELOW NEED TO BE REVISED) - KEPT NOW FOR REFERENCE
Updates
Ubuntu 16.04 with proposed packages 2018/10/22:
sudo apt update
sudo apt upgrade
to fix gnome-terminal set this:
set: LC_ALL=en_US.UTF-8
Preparations for ros/autoware installation
1. Replace graphics libraries supplied by nvidia with default ones
mkdir -p backup/usr/lib
sudo cp -a /usr/lib/libdrm* backup/usr/lib
sudo cp -a /usr/lib/libwayland-* backup/usr/lib
mkdir -p backup/etc/nvidia
sudo cp -a /etc/nvidia/nvidia_gl.conf backup/etc/nvidia
sudo cp -a /etc/nvidia/nvidia_egl.conf backup/etc/nvidia
sudo apt-get install --reinstall -y libdrm2 libdrm-dev libwayland-client0 libwayland-cursor0 libwayland-egl1-mesa libwayland-server0 libwayland-dev
sudo ldconfig
2. Reboot
Reboot the computer
ROS installation
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install -y build-essential cmake python-pip
sudo apt-get install -y checkinstall
sudo apt-get install -y python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential
sudo apt-get install -y libavutil-ffmpeg54
sudo apt-get install -y libswresample-ffmpeg1
sudo apt-get install -y libavformat-ffmpeg56
sudo apt-get install -y libswscale-ffmpeg3
sudo apt-get install -y libssl1.0.0=1.0.2g-1ubuntu4.13
sudo apt-get install -y libssl-dev=1.0.2g-1ubuntu4.13
sudo apt-get install -y ros-kinetic-desktop-full
sudo apt-get install -y ros-kinetic-nmea-msgs ros-kinetic-nmea-navsat-driver ros-kinetic-sound-play ros-kinetic-jsk-visualization ros-kinetic-grid-map ros-kinetic-gps-common
sudo apt-get install -y ros-kinetic-controller-manager ros-kinetic-ros-control ros-kinetic-ros-controllers ros-kinetic-gazebo-ros-control ros-kinetic-joystick-drivers
sudo apt-get install -y libnlopt-dev freeglut3-dev qtbase5-dev libqt5opengl5-dev libssh2-1-dev libarmadillo-dev libpcap-dev gksu libgl1-mesa-dev libglew-dev
sudo apt-get install -y ros-kinetic-camera-info-manager-py ros-kinetic-camera-info-manager
Autoware Installation
source /opt/ros/kinetic/setup.bash
sudo apt-get install -y openssh-server libnlopt-dev freeglut3-dev qtbase5-dev libqt5opengl5-dev libssh2-1-dev libarmadillo-dev libpcap-dev git
sudo apt-get install -y libnlopt-dev freeglut3-dev qt5-default libqt5opengl5-dev libssh2-1-dev libarmadillo-dev libpcap-dev libglew-dev gksu
sudo apt-get install -y libxmu-dev python-wxgtk3.0 python-wxgtk3.0-dev
sudo ln -s /usr/include/aarch64-linux-gnu/qt5 /usr/include/qt5
sudo ln -s /usr/local/cuda/lib64/libcudart.so /usr/lib/libcudart.so
cd
git clone https://github.com/CPFL/Autoware.git
cd ~/Autoware
git submodule update --init --recursive
cd ~/Autoware/ros/src
catkin_init_workspace
cd ..
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
./catkin_make_release -j 1
To run demo follow this video:
https://www.youtube.com/watch?v=OWwtr_71cqI
To add a new experiment:
Appy patches according to jose instructions, and re-compile using:
./catkin_make_release -j 1
- Move the data files to .autoware/data
- move quicklaunch files to where the manager.launch file loads them from
- edit quicklaunch files so they load the files correctly
To run experiments
make sure these lines are in your .bashrc file
source /opt/ros/kinetic/setup.bash
export PATH=${PATH}:/usr/local/autoware/bin
source ~/Autoware/ros/devel/setup.bash
Open 3 terminals and run these commands:
ros
cd ~/Autoware/ros && ./run
roslaunch manager manager.launch
Source
https://github.com/CPFL/Autoware/wiki/Source-Build
https://github.com/CPFL/Autoware/blob/master/docs/en/installation_with_drivepx2.md