qboticslabs/mastering_ros

Problem of Capter6 code

tomato1986 opened this issue · 2 comments

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

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.

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