Other OS

ROS Installation From Source on Debain For Hikey (Linaro Releases)

1 4555
Edited by alessia at Jun 11, 2016 23:09

To run ROS on HiKey, I tested with the OS Debain For Hikey (Linaro Releases). Installing ROS from source code on Debian Jessie is troublesome.
The reference link:http://wiki.ros.org/indigo/Installation/Debian

The difference is the OS distribute, just modify Wheezy to Jessie

  1. $ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu jessie main" > /etc/apt/sources.list.d/ros-latest.list'
  2. $ sudo sh -c 'echo "deb http://http.debian.net/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list'
Copy the Code

And the last one of dependency here on HiKey is newer:

  1. #OGRE: Install newer version through apt-get
  2. $ sudo apt-get remove libogre*
  3. $ sudo apt-get install libogre*
Copy the Code

When you're creating the ROS catkin workspace to install, you have two choice for debian tested: ROS-Comm: (recommended) and Desktop, that is to say, choose one of the below:

  1. $ rosinstall_generator ros_comm --rosdistro indigo --deps --wet-only --exclude roslisp --tar > indigo-ros_comm-wet.rosinstall
  2. $ wstool init -j8 src indigo-ros_comm-wet.rosinstall
Copy the Code
  1. $ rosinstall_generator desktop --rosdistro indigo --deps --wet-only --exclude roslisp --tar > indigo-desktop-wet.rosinstall
  2. $ wstool init -j8 src indigo-desktop-wet.rosinstall
Copy the Code

Remember the path you specified (here it is /opt/ros/indigo) when you're installing ROS:

  1. $ sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo
Copy the Code

You can then add this path /opt/ros/indigo setup command to the file  ~/.bashrc such that the environment can be lanched automatically:

  1. $ source /opt/ros/indigo/setup.bash
  2. $ echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
Copy the Code

Finally the ROS is done on HiKey Debian Jessie. It seems most GUI tools can be used on HiKey, but not rviz. It can't start rviz graphic interface. Can anyone help?

Good Sharing

You have to log in before you can reply Login | Sign Up

Points Rules