Created
May 18, 2018 10:50
-
-
Save DavidTorresOcana/c5076f5c2b4cc1e678a761b326201d52 to your computer and use it in GitHub Desktop.
Install Robot Operating System (ROS) on NVIDIA DRIVE PX2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# taken from https://devtalk.nvidia.com/default/topic/1011002/cross-compiling-driveworks-on-the-px2-with-ros/ | |
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 | |
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | |
# this is crucial | |
sudo apt-get install libssl1.0.0/xenial libssl-doc/xenial libssl-dev/xenial | |
sudo apt-get update | |
sudo apt-get install ros-kinetic-desktop-full | |
# To find available packages: | |
# apt-cache search ros-kinetic | |
# | |
# Initialize rosdep | |
sudo apt-get install python-rosdep -y | |
# Certificates are messed up | |
sudo c_rehash /etc/ssl/certs | |
# Initialize rosdep | |
sudo rosdep init | |
# To find available packages, use: | |
rosdep update | |
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc | |
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/aarch64-linux-gnu" >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 28 should be changed to the following for ROS to work on the PX2.
echo "export LD_LIBRARY_PATH=/opt/ros/kinetic/lib" >> ~/.bashrc