You are not logged in.

#1 2020-04-22 16:35:04

joaocandre
Member
Registered: 2013-02-23
Posts: 166

Compiling ROS packages in Arch

I've installed `ros-melodic-desktop-full` through the oscloud custom repository, and I'm trying to compile some ROS code in Arch (in order to avoid having to install or virtualize Ubuntu), forcing the use of python 3 with:

$ catkin_make -DPYTHONPATH=/usr/lib/python3.8/site-packages -DPYTHON_EXECUTABLE=/usr/bin/python -DPYTHON_LIBRARY=/usr/lib/libpython3.8.so --pkg=astra_camera

but currently facing the following issue when compiling some packages:

...
Traceback (most recent call last):
  File "/home/....../astra_camera/cfg/UVCCamera.cfg", line 4, in <module>
    from dynamic_reconfigure.parameter_generator_catkin import *
  File "/opt/ros/melodic/lib/python3.8/site-packages/dynamic_reconfigure/__init__.py", line 38, in <module>
    import roslib
  File "/opt/ros/melodic/lib/python3.8/site-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/melodic/lib/python3.8/site-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

Now, I am sure I have `python-rospkg` installed, but weirdly it is not being included by catkin. Apparently `rospkg` is installed in `/usr/lib/python3.8/site-packages` instead of `/opt/ros/melodic/lib` as the rest of the ROS packages, but that path is already passed to catkin, so I don't really understand the issue. I'm not sure if this is specific to the python version being used, as other ROS packages compile just fine, and I'd like to avoid having to install the python 2 versions of each ros package - they conflict with the python3 versions and I'd have to do it package by package as there is no python2 ros-melodic group.

Anyone here with ROS experience care to weigh in on this?

Offline

#2 2020-04-22 19:24:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,849

Re: Compiling ROS packages in Arch

If you mean https://wiki.archlinux.org/index.php/Un … es#oscloud , its infopage only lists ros-melodic-desktop .

AUR on the other hand does have both ros-melodic-desktop & ros-melodic-desktop-full .
The aur pages indicate development has shifted to https://github.com/ros-melodic-arch .

That github page doesn't mention the oscloud repo, and the git repositories there don't list python-rospkg, maybe the oscloud repo is out-of-date ?

I suggest you email the person that's listed on the github page.

Last edited by Lone_Wolf (2020-04-22 19:25:31)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2020-04-22 19:44:49

joaocandre
Member
Registered: 2013-02-23
Posts: 166

Re: Compiling ROS packages in Arch

There is a pinned comment on the AUR page for `ros-melodic-desktop-full` (https://aur.archlinux.org/packages/ros … top-full/) mentioning precisely that repository, which I'm pretty sure it's hosted/maintained by the same team.

On the other hand, it's true that the installed versions are behind the ones on the AUR - I'll upgrade them and test it out. Though IMO the issue is somwhere on how catkin is called.

Offline

Board footer

Powered by FluxBB