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

Revision history [back]

click to hide/show revision 1
initial version

You are missing packages. The errors you get tell you that at least controller_manager is not installed on your machine.

Most efficient way to fix this:

source /opt/ros/$DISTRO/setup.bash
rosdep update
rosdep install --from-paths /path/to/your/catkin_ws/src --ignore-src

Then follow the prompts.

I'd be surprised if the book didn't tell you about this though, it's a basic step to get someone else's sources working in your workspace.

You are missing packages. The errors you get tell you that at least controller_manager is not installed on your machine.

Most efficient way to fix this:

source /opt/ros/$DISTRO/setup.bash
rosdep update
rosdep install --from-paths /path/to/your/catkin_ws/src --ignore-src

Then follow the prompts.

I'd be surprised if the book didn't tell you about this though, it's a basic step to get someone else's sources working in your workspace.


Edit:

I am using Ubuntu 16.04 under ROS Kinetic. I have also tried to run it under Ubuntu 14.04 and ROS Indigo.

The controller_manager package has been released on both Indigo and Kinetic, so it should install on both. I cannot guarantee that all the other dependencies of the Mastering ROS for Robotics Programming book are available on Kinetic though. rosdep will tell you when it can't find something.

You are missing packages. The errors you get tell you that at least controller_manager is not installed on your machine.

Most efficient way to fix this:

source /opt/ros/$DISTRO/setup.bash
rosdep update
rosdep install --from-paths /path/to/your/catkin_ws/src --ignore-src

Then follow the prompts.

I'd be surprised if the book didn't tell you about this though, it's a basic step to get someone else's sources working in your workspace.


Edit:

I am using Ubuntu 16.04 under ROS Kinetic. I have also tried to run it under Ubuntu 14.04 and ROS Indigo.

The controller_manager package has been released on both Indigo and Kinetic, so it should install on both. I cannot guarantee that all the other dependencies of the Mastering ROS for Robotics Programming book are available on Kinetic though. rosdep will tell you when it can't find something.


Edit:

I tried but still the same. It is not working. Same error and same thing.

Are you sure you ran the rosdep commands properly? Were there any errors? If I look at chapter_3_codes/diff_wheeled_robot_control/package.xml for instance, I definitely see a <build_depend>controller_manager</build_depend> and a run_depend, which should have resulted in rosdep installing ros-$distro-controller-manager for you.

Did it install any new packages?

You are missing packages. The errors you get tell you that at least controller_manager is not installed on your machine.

Most efficient way to fix this:

source /opt/ros/$DISTRO/setup.bash
rosdep update
rosdep install --from-paths /path/to/your/catkin_ws/src --ignore-src

Then follow the prompts.

I'd be surprised if the book didn't tell you about this though, it's a basic step to get someone else's sources working in your workspace.


Edit:

I am using Ubuntu 16.04 under ROS Kinetic. I have also tried to run it under Ubuntu 14.04 and ROS Indigo.

The controller_manager package has been released on both Indigo and Kinetic, so it should install on both. I cannot guarantee that all the other dependencies of the Mastering ROS for Robotics Programming book are available on Kinetic though. rosdep will tell you when it can't find something.


Edit:Edit2:

I tried but still the same. It is not working. Same error and same thing.

Are you sure you ran the rosdep commands properly? Were there any errors? If I look at chapter_3_codes/diff_wheeled_robot_control/package.xml for instance, I definitely see a <build_depend>controller_manager</build_depend> and a run_depend, which should have resulted in rosdep installing ros-$distro-controller-manager for you.

Did it install any new packages?


Edit3: just noticed that chapter_3_codes/seven_dof_arm_gazebo/package.xml does not list controller_manager as either a run or a build depend. But it also doesn't use it. So I'm wondering what kind of output you got from rosdep: does it say "All system dependencies have been satisified"?

You are missing packages. The errors you get tell you that at least controller_manager is not installed on your machine.

Most efficient way to fix this:

source /opt/ros/$DISTRO/setup.bash
rosdep update
rosdep install --from-paths /path/to/your/catkin_ws/src --ignore-src

Then follow the prompts.

I'd be surprised if the book didn't tell you about this though, it's a basic step to get someone else's sources working in your workspace.


Edit:

I am using Ubuntu 16.04 under ROS Kinetic. I have also tried to run it under Ubuntu 14.04 and ROS Indigo.

The controller_manager package has been released on both Indigo and Kinetic, so it should install on both. I cannot guarantee that all the other dependencies of the Mastering ROS for Robotics Programming book are available on Kinetic though. rosdep will tell you when it can't find something.


Edit2:

I tried but still the same. It is not working. Same error and same thing.

Are you sure you ran the rosdep commands properly? Were there any errors? If I look at chapter_3_codes/diff_wheeled_robot_control/package.xml for instance, I definitely see a <build_depend>controller_manager</build_depend> and a run_depend, which should have resulted in rosdep installing ros-$distro-controller-manager for you.

Did it install any new packages?


Edit3: just noticed that chapter_3_codes/seven_dof_arm_gazebo/package.xml does not list controller_manager as either a run or a build depend. But it also doesn't use it. So I'm wondering what kind of output you got from rosdep: does it say "All system dependencies have been satisified"?


Edit4:

I also checked the installed packages by using command

apt-cache search ros-kinetic

and I did see these packages available in installation

Afaik, apt-cache searches in all available packages, not just those installed on your machine. See what dpkg -l | grep controller-manager returns.

But still I tried to run as per your instructions to run this command.

sudo apt-get install python-rosinstall

I don't think I asked you to run that command. I asked you to run rosdep update and rosdep install .. (see top of answer).

I tried running this command rosdep install --from-paths src --ignore-src --rosdistro kinetic -y

and then I got this error. I guess, the problem lies here.

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
amr_robots_description: Cannot locate rosdep definition for [urdf_tools]

That was indeed the command I asked you to run at the very beginning. The fact that it is failing here could mean that it doesn't continue to install all the other dependencies.

Can you please try the following command:

rosdep install --from-paths src --ignore-src --rosdistro kinetic -y -r

notice the -r that makes rosdep continue in case it can't find/install something.

Please run that command, and add the output of it to your original question.

We're particularly interested in any output mentioning the controller_manager package, or any of its dependencies.