ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Error: ur5_ros-gazebo package not found

asked 2019-05-06 09:21:43 -0500

lr_k123 gravatar image

updated 2019-05-07 01:52:24 -0500

Hi! I cloned a package into my catkin_ws/src folder with 'git clone , then catkin_make & source devel/setup.bash (all works fine)

laurah@laurah-HP-EliteBook-840-G1:~/catkin_ws$ catkin_make
Base path: /home/laurah/catkin_ws
Source space: /home/laurah/catkin_ws/src
Build space: /home/laurah/catkin_ws/build
Devel space: /home/laurah/catkin_ws/devel
Install space: /home/laurah/catkin_ws/install
#### Running command: "make cmake_check_build_system" in "/home/laurah/catkin_ws/build"
#### Running command: "make -j4 -l4" in "/home/laurah/catkin_ws/build"
[  0%] Built target std_msgs_generate_messages_cpp
[  0%] Built target _ur_msgs_generate_messages_check_deps_IOStates
[100%] Built target ur_driver
[100%] Built target ur_msgs_generate_messages
[100%] Built target ur5_notebook_generate_messages
laurah@laurah-HP-EliteBook-840-G1:~/catkin_ws$ source devel/setup.bash
laurah@laurah-HP-EliteBook-840-G1:~/catkin_ws$ ls -a src
.  ..  CMakeLists.txt  universal_robot  ur5_ROS-Gazebo  ur_modern_driver
laurah@laurah-HP-EliteBook-840-G1:~/catkin_ws$ rospack find ur5_ROS-Gazebo
[rospack] Error: package 'ur5_ROS-Gazebo' not found
laurah@laurah-HP-EliteBook-840-G1:~/catkin_ws$ rosrun ur5_ROS-Gazebo
[rospack] Error: package 'ur5_ROS-Gazebo' not found

What am I doing wrong? I am using Ubuntu 16.04

edit retag flag offensive close merge delete


Did you remember to build the workspace? You can't just clone a package and try execute scripts/binaries in it.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-06 09:23:48 -0500 )edit

Oh I thought catkin_make would be enough. I will try catkin build first thing tomorrow. Thank you for the fast reply :)

lr_k123 gravatar image lr_k123  ( 2019-05-06 09:31:41 -0500 )edit

catkin_make is enough. That is what "building your workspace" means.

Did you also source /path/to/your/catkin_ws/devel/setup.bash?

gvdhoorn gravatar image gvdhoorn  ( 2019-05-06 15:10:23 -0500 )edit

The only error I see when I look at the package on github is that the python file is named instead of

Tyrel gravatar image Tyrel  ( 2019-05-06 20:39:48 -0500 )edit

That would become a problem if/when roslaunch is able to find the package. That isn't happening according to what @lr_k123 tells us, so that's something to fix first.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-07 00:03:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-05-07 02:08:07 -0500

gvdhoorn gravatar image

The cause of the error is that the package is actually called ur5_notebook instead of ur5_ROS-Gazebo (see here in the manifest). The latter is only the name of the repository (and the directory in your workspace).

The following should work:

rosrun ur5_notebook
edit flag offensive delete link more


Thank you very much! I did not see that. Do you also advise to rename ~/catkin_ws/src/ur5_ROS-Gazebo to ~/catkin_ws/src/ur5_notebook or will that cause other problems?

lr_k123 gravatar image lr_k123  ( 2019-05-07 07:01:11 -0500 )edit

re: rename: it's not really necessary, but if you'd like to it won't harm anything. You'll probably have to rebuild your workspace though.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-07 07:20:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-05-06 09:21:43 -0500

Seen: 575 times

Last updated: May 07 '19