Skip to content

Instantly share code, notes, and snippets.

@DavidTorresOcana
Created May 18, 2018 10:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidTorresOcana/c5076f5c2b4cc1e678a761b326201d52 to your computer and use it in GitHub Desktop.
Save DavidTorresOcana/c5076f5c2b4cc1e678a761b326201d52 to your computer and use it in GitHub Desktop.
Install Robot Operating System (ROS) on NVIDIA DRIVE PX2
#!/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
@frobinet
Copy link

Note that the key in --recv-key should now be changed to C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 for this to work. See http://wiki.ros.org/Installation/UbuntuARM.

@aryanfaghihi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment