ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

catkin ws extends from /opt/ros issue

asked 2021-03-16 03:49:10 -0500

AntoineKuleba gravatar image

Hi everyone,

I am having issue regarding the 'extend' parameter when I want to run at the same time executables from /opt/ros/melodic and from my personal catkin_ws folder. In my case, I am running:

rosrun rqt_multiplot rqt_multiplot

Which has been install from the apt:

sudo apt install ros-melodic-rqt-multiplot

So it is located in /opt/ros/melodic/lib. So to be able to run it I source the /opt/ros/melodic/setup.bash

But then, when I configure the graph to display a topic from a node located in my personal catkin_ws folder (my pkg name is 'open_vino_pkg', I have the the error:

[rospack] Error: package 'open_vino_pkg' not found

And indeed, when I do rospack depend open_vino_pkg it does not find it.

So then I source my personal folder source catkin_ws/install/setup.bashand then it is able to find my pkg, but not anymore the executable of rqt_multiplot:

rosrun rqt_multiplot rqt_multiplot gives me the error: [rosrun] Couldn't find executable named rqt_multiplot below /home/antoine/catkin_ws/install/share/rqt_multiplot

My personal catkin_ws has the extend parameter to /opt/ros/melodic (I use catkin tools). So, I do not understand, how to be able to use executables located in those two different locations, knowing that the 'source' overwrites the path, even with 'extend'.

What did I not get?

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-03-16 06:51:06 -0500

mgruhler gravatar image

The issue here is (see the error) that you apparently have installed a package called rqt_multiplot into your install space, but this doesn't contain the executable.

The ROS tools look at the first location where the package is found.

Either you have shadowed the package name, or the rqt_multiplot package in your workspace hasn't compiled properly. Either check that this build properly, and if you don't have it anymore in your source space, clean your install space and fill it again.

edit flag offensive delete link more

Comments

Thanks! That was the issue! But I am always surprised that catkin clean pkg_name let some undeleted files in some packages (in build, devel or install). It is common that I have to remove manually some files after executing this command, and I would say that I do it in the proper way though.

But anyway thanks again!

AntoineKuleba gravatar image AntoineKuleba  ( 2021-03-16 09:40:23 -0500 )edit

Can't comment on what actually gets removed by the command. But I assume that you have to call it once for the devel and once for the install space with the appropriate profile sourced.

if this helped, please also mark it as correct by clicking the checkmark next to the answer. Thanks

mgruhler gravatar image mgruhler  ( 2021-03-17 03:51:09 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-03-16 03:49:10 -0500

Seen: 404 times

Last updated: Mar 16 '21