DRIVE PX2 ROS INSTALLATION

. Install the PDK and flash the target build onto the board as described in the PDK Developer’s Guide
2. Boot to Ubuntu Unity Desktop
Note: Do not perform “apt-get upgrade” on the target, at any stage
3. Via Ubuntu GUI, configure Ubuntu to allow package installation from main, restricted, universe and multiverse repositories
4. Setting locale:
(This is optional. Setting locales explicitly to either of the options mentioned may cause some issues with launching the terminal after a system reboot. So, this step may be skipped in the first try)
sudo update-locale LANG=C LANGUAGE=C LC_ALL=C LC_MESSAGE=POSIX
(or)
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales

  1. Setup the keys to authenticate package downloads
    sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

  2. Open the ‘Software & Updates’ applet and add
    deb http://packages.ros.org/ros/ubuntu xenial main

  3. Update the libssl1.0.0 package to the latest version [1.0.2g-1ubuntu4.6]and install libssl-dev
    sudo apt-get install libssl1.0.0/xenial libssl-doc/xenial libssl-dev/xenial

  4. Install the ‘Desktop’ bundle of ROS (contains the ROS Core Framework, plus a set of popular algorithms and sample apps)
    sudo apt-get install ros-kinetic-desktop

  5. After successful installation of ROS, set up the environment so that the terminal recognizes ROS.
    echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
    source ~/.bashrc

  6. Set the library search path for the current shell
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/aarch64-linux-gnu

  7. Run some ROS sample apps to verify install success. For example:
    VISUALIZING THE ROS TURTLESIM APP WITH RVIZ

  8. From a terminal, run
    roslaunch turtle_tf turtle_tf_demo.launch

  9. In a new terminal, run
    rviz &

  10. After launching the rviz GUI, change the Fixed frame (found under ‘Global Options’ in the ‘Displays’ section) to ‘world’.

  11. From the display section, Add > By display type > TF

  12. To verify successful connectivity between the turtlesim application and rviz,
    move the turtle on the terminal used to run roslaunch (Step1 above) and observe the movement of the turtle frames with respect to the world frame in the rviz GUI
    Attachments