Error: package 'ros_controllers' not found

486 views
Skip to first unread message

Chunting Jiao

unread,
Dec 23, 2016, 10:30:39 AM12/23/16
to ROS/Orocos Robot Control Special Interest Group
Dear all,
It's bizarre that I encountered the problem "Error: package 'ros_controllers' not found".

I've installed this package by
sudo apt-get install ros-indigo-ros-control ros-indigo-ros-controllers

and source it through "source /opt/ros/indigo/setup.bash"

The "/opt/ros/indigo/share/ros_controllers/package.xml" exists well.

However, when run the command "rospack find ros_controllers", the error mentioned above shows up.

Anyone can tell me why this happen? and what should I do with it?

Thanks.

Merry Christmas and Happy New Year~~

Regards,
Chunting

Eric Tappan

unread,
Dec 24, 2016, 7:39:53 AM12/24/16
to ROS/Orocos Robot Control Special Interest Group
Metapackages like ros_controllers follow slightly different rules than regular packages since they install other packages, but not any files unique to themselves. Some commands will work, others won't. Similarly, another package will never depend on a metapackage, but might depend on one or more packages installed by that metapackage.
~$ rospack find ros_controllers
[rospack] Error: package 'ros_controllers' not found
~$ rosversion ros_controllers
<unversioned>
~$ roscd ros_controllers
/opt/ros/indigo/share/ros_controllers$ 

Instead, you should check to see if any of the packages inside ros_controllers have been installed. ros_controllers doesn't include any nested metapackages, so they'll behave as expected.
~$ rospack find velocity_controllers
/opt/ros/indigo/share/velocity_controllers
~$ rosversion velocity_controllers
0.9.3
~$ roscd velocity_controllers
/opt/ros/indigo/share/velocity_controllers$ 

Hope that helps!
Reply all
Reply to author
Forward
0 new messages