qboticslabs / mastering_ros

This repository contains exercise files of the book "Mastering ROS for Robotics Programming"
https://www.packtpub.com/hardware-and-creative/mastering-ros-robotics-programming
468 stars 282 forks source link

Problem of Capter6 code #29

Open tomato1986 opened 6 years ago

tomato1986 commented 6 years ago

Hi. When I tried to run chapter 6 code (roslaunch my_controller_pkg my_controller.launch), following error message appeared. Why is this? I cannot solve this problem.

[ERROR] [1509151282.659039134, 11.464000000]: Could not load class my_controller_pkg/MyControllerPlugin: Could not find library corresponding to plugin my_controller_pkg/MyControllerPlugin. Make sure the plugin description XML file has the correct name of the library and that the library actually exists. [ERROR] [1509151282.659179317, 11.464000000]: Could not load controller 'my_controller_name' because controller type 'my_controller_pkg/MyControllerPlugin' does not exist

My simulation environment is Ubuntu 14LTS ROS indigo

qboticslabs commented 6 years ago

Just check whether the ROS workspace is in the ROS Package path.

$ echo $ROS_PACKAGE_PATH

After catkin_make, you can list out the plugins available in the system using the command mentioned in the book.

tomato1986 commented 6 years ago

Thank you. When I run "catkin build" instead of catkin_make, the code could work!!