ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Compare your main.cpp to my_plugin.cpp. You don't have this line at the bottom:
PLUGINLIB_DECLARE_CLASS(rqt_gauges, MyPlugin, rqt_gauges::MyPlugin, rqt_gui_cpp::Plugin)
You also never construct a Widget object, and you're missing this function (which seems rather important):
void MyPlugin::initPlugin(qt_gui_cpp::PluginContext& context)
So go back and spend some time fixing those obvious issues. I think we would be more motivated to help if you upvoted good answers, too.
2 | No.2 Revision |
Compare your main.cpp to my_plugin.cpp. You don't have this line at the bottom:
PLUGINLIB_DECLARE_CLASS(rqt_gauges, MyPlugin, rqt_gauges::MyPlugin, rqt_gui_cpp::Plugin)
You also never construct a Widget object, and And you're missing this function (which seems rather important):
void MyPlugin::initPlugin(qt_gui_cpp::PluginContext& context)
So go back and spend some time fixing those obvious issues. I think we would be more motivated to help if you upvoted good answers, too.