Running ROS from source on Arch Linux

1 minute read

yaourt -S python-rosinstall_generator –noconfirm yaourt -S python-rosdep sudo rosdep init patrick@dell  ~/ros_ws  rosdep update reading in sources list data from /etc/ros/rosdep/sources.list.d Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index.yaml Add distro “groovy” Add distro “hydro” Add distro “indigo” Add distro “jade” Add distro “kinetic” Add distro “lunar” updated cache in /home/patrick/.ros/rosdep/sources.cache

mkdir ros_ws mkdir kinetic

#http://wiki.ros.org/Distributions #http://wiki.ros.org/indigo/Installation/Source rosinstall_generator desktop_full –rosdistro kinetic –deps –wet-only –tar > kinetic-desktop-full-wet.rosinstall

aur/python-wstool

wstool init -j8 src kinetic-desktop-full-wet.rosinstall

ok, if it fail, you can try: wstool update -j 4 -t src rosdep install –from-paths src –ignore-src –rosdistro kinetic -y

executing command [sudo -H pacman -S –noconfirm –needed urdfdom-headers cppunit ogre-1.9 tango-icon-theme python2-pygraphviz hddtemp python2-rosdep python2-catkin_pkg python2-opengl python2-paramiko pcl poco python2-empy python2-pydot vtk python2-defusedxml sbcl python2-netifaces urdfdom log4cxx python2-rospkg collada-dom console-bridge python2-coverage gazebo yaml-cpp]

run the command as yaourt, and maybe would be necessary to solve some problems until compile everything. (like qtwebkit -> qtwebkit-bin to gazebo) https://aur.archlinux.org/packages/gazebo/#news move to https://aur.archlinux.org/packages/gazebo-ogre-1.10/

Solving all problems with all the packages, you will need to run ./src/catkin/bin/catkin_make_isolated –install -DCMAKE_BUILD_TYPE=Release

And you will have ros installed ! http://www.reactiongifs.com/wp-content/uploads/2013/10/tim-and-eric-mind-blown.gif srly, I love hate and ros, it’s good to do some things and terrible in others ! PS: Please help me to make arch a full supported distro in ROS and ROS2 :)

PS2: Mini tutorial to install ros2 in arch: use https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos

Xephyr -screen 1024x768 :1 & docker run -ti –rm -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev -v ~/git/blue/:/mnt -e DISPLAY=:1.0 -e QT_X11_NO_MITSHM=1 ubuntu:17.10

wstool remove opencv3