actionlib and rqt
Hello,
I'm learning ROS now and trying to create an action client in my rqt plugin.
No problem to catkin build the plugin. But when load the plugin, I got error as below:
undefined symbol: _ZN9actionlib17ConnectionMonitor21cancelConnectCallbackERKN3ros25SingleSubscriberPublisherE)
Unmangled:
actionlib::ConnectionMonitor::cancelConnectCallback(ros::SingleSubscriberPublisher const&)
My code is similar to the following. Is it a rqt bug, or is there anything wrong in my code?
Thank you for your help!
class MyPlugin : public rqt_gui_cpp::Plugin
{
Q_OBJECT
public:
MyPlugin();
virtual void initPlugin(qt_gui_cpp::PluginContext& context);
virtual void shutdownPlugin();
private
Ui::MyPluginWidget ui_;
QWidget* widget_;
actionlib::SimpleActionClient<my_msgs::MyAction> aClient;
}
MyPlugin::MypPlugin()
: rqt_gui_cpp::Plugin()
, widget_(0)
, aClient("some action")
{
setObjectName("Plugin");
}
I've added the unmangled version of the missing symbol to your question text.
Hi Gvdhoom,
By the way, where should I use
in shutdownPlugin()?
Thank you!
That is a different issue, so I advise you to post that as a new question. We try to maintain a 1 question - 1 answer ratio here on ROS Answers.