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

Unable to load PID controller

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

BhanuKiran.Chaluvadi gravatar image

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

Hi,

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//libmecanum_drive_controller.so: 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/tcpros_service.py", line 435, in __call__
    return self.call(*args, **kwds)
 File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", 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
1

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

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

Comments

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 -0500 )edit

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

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

Question Tools

2 followers

Stats

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

Seen: 280 times

Last updated: Mar 04 '19