Ask Your Question
0

Error: ur5_ros-gazebo package not found

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

lr_k123 gravatar image

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

Hi! I cloned a package into my catkin_ws/src folder with 'git clone https://github.com/lihuang3/ur5_ROS-G... , 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 testmotion.py
[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

Comments

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

gvdhoorn gravatar imagegvdhoorn ( 2019-05-06 09:23:48 -0600 )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 imagelr_k123 ( 2019-05-06 09:31:41 -0600 )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 imagegvdhoorn ( 2019-05-06 15:10:23 -0600 )edit

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

Tyrel gravatar imageTyrel ( 2019-05-06 20:39:48 -0600 )edit
1

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 imagegvdhoorn ( 2019-05-07 00:03:31 -0600 )edit

1 Answer

Sort by » oldest newest most voted
2

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

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 testmotion.py
edit flag offensive delete link more

Comments

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 imagelr_k123 ( 2019-05-07 07:01:11 -0600 )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 imagegvdhoorn ( 2019-05-07 07:20:39 -0600 )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

Stats

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

Seen: 52 times

Last updated: May 07