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

Unable to load PID controller

asked 2019-03-04 06:09:32 -0600

BhanuKiran.Chaluvadi gravatar image

updated 2019-03-04 06:10:01 -0600


I am trying to write my own controller, where i want to add some PID.

#include <control_toolbox/pid.h>
control_toolbox::Pid pid_controller_;

All though it was able build but its throws an error while spawning and error looks like this

symbol lookup error: /home/bc/catkin_ws/devel/lib// undefined symbol: _ZN15control_toolbox3PidC1Edddddb
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/controller_manager/spawner", line 207, in <module>
    if __name__ == '__main__': main()
  File "/opt/ros/kinetic/lib/controller_manager/spawner", line 185, in main
    resp = load_controller(name)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/", line 435, in __call__
    return*args, **kwds)
 File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/", line 525, in call
    raise ServiceException("transport error completing service call: %s"%(str(e)))
rospy.service.ServiceException: transport error completing service call: unable to receive data from sender, check sender's logs for details
[INFO] [1551700891.795187]: Shutting down spawner. Stopping and unloading controllers...
[INFO] [1551700891.795507]: Stopping all controllers...
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-04 06:34:24 -0600

gvdhoorn gravatar image

Most likely you're not linking to all the required libraries.

Please show us your CMakeLists.txt.

Note: remove all comments from the file. We don't need to see those.

edit flag offensive delete link more


Yes, you are right. How can i accept your comment as an answer ?

BhanuKiran.Chaluvadi gravatar image BhanuKiran.Chaluvadi  ( 2019-03-04 12:25:03 -0600 )edit

That's not possible, but I've just converted it into an answer.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-04 12:31:37 -0600 )edit

Question Tools



Asked: 2019-03-04 06:09:32 -0600

Seen: 276 times

Last updated: Mar 04 '19