rqt load_plugin problem [closed]

asked 2013-08-29 02:04:28 -0500

acp gravatar image

updated 2013-08-29 22:55:59 -0500

felix k gravatar image

Hi every body

I am trying to develop a plug in for rviz, for that I am trying to understand the tutorials.

I mainly follow the tutorial stated in the next link, I have followed catkin and .py: http://ros.org/wiki/rqt/Tutorials/Create%20your%20new%20rqt%20plugin#Install_.26_Run_your_plugin

I have the following files in ~/catkin_ws/src/rqt_mypkg/src/rqt_mypkg:

__init__.py  my_module.py  my_module.py~  my_module.pyc  notepad.ui

Then I compile everything: catkin_ws$ catkin_make

Then I open rqt

I can see my plug in there, but when I click in my plugin I get the following error:

PluginManager._load_plugin() could not load plugin "rqt_mypkg/MyPlugin":

Do you have any clue what can be wrong?

In advance thank you :)

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-12-05 18:43:24.989262

Comments

Uhm, could it be that this isn't the full error message? I'd expect some file/class mismatch details to follow. -- Have you checked to match every path/module/class etc specs named in `plugin.xml` to match the real python code files?

felix k gravatar imagefelix k ( 2013-08-29 22:58:15 -0500 )edit

Hi, I manage to solve the problem, it was the .ui file, I had <widget class="QMainWindow" name="awc_gui">and I changed to <widget class="QWidget" name="awc_gui">. Because I created the gui with qt designer.

acp gravatar imageacp ( 2013-09-02 00:33:18 -0500 )edit

Now my next issue is to connect a click event in the rqt gui with some ros application. For instance, if I click a PushButtom I want to start the navigation satck. And if I click another Pushbutton I want to control the robot with a joystick etc. In advance thank you :)

acp gravatar imageacp ( 2013-09-02 00:37:26 -0500 )edit