Skip to content

Instantly share code, notes, and snippets.

@salehjg
Last active October 5, 2019 14:27
Show Gist options
  • Save salehjg/ed06147e25ab10e2c34f46860f1a65d5 to your computer and use it in GitHub Desktop.
Save salehjg/ed06147e25ab10e2c34f46860f1a65d5 to your computer and use it in GitHub Desktop.
Getting ROS Up and Running on ArchLinux
  1. install yay or pikaur, DO NOT use pacaur as it does not handle version specific dependecies well(github issue).

  2. install libpgm-git from aur

  3. set MAKEFLAGS option to -j8 in /etc/makepkg.conf

  4. increase sudo session timeout in /etc/sudoers :
    Defaults timestamp_timeout=600

  5. start with: yay -S ros-melodic-desktop-full

  6. select package ros-build-tools-py3 when aur helper asks

  7. after that compilation has finished, setup an ROS workspace with python3 using:

mkdir workspace
cd workspace
mkdir src
catkin_make --cmake-args -DPYTHON_EXECUTABLE=/usr/bin/python3
  1. follow the ROS Tutorials

  2. sudo sed -i.bak 's/urlparse/urllib.parse/' /opt/ros/melodic/lib/gazebo_ros/spawn_model

  3. sudo sed -i.bak 's/python3 or type(_x) == unicode/type(_x) == str/' /opt/ros/melodic/lib/python3.7/site-packages/gazebo_msgs/srv/_SpawnModel.py

  4. in case of the cv_bridge issue:

git clone https://github.com/ros-melodic-arch/ros-melodic-cv-bridge.git
makepkg --nobuild
# Apply the patch to the source code file.
makepkg --noextract -s -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment