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

Finding python modules in rqt plugins?

asked 2013-03-15 03:36:04 -0500

TommyP gravatar image

updated 2013-03-15 03:36:34 -0500

I have defined Python modules in setup.py for a package and these modules are found when running Python programs from another package using rosrun. But running

rosrun rqt_gui rqt_gui -s lrs_rqt/rqt_quad.quad.Quad

where I in quad.py have:

from quad.qcon import *

then it does not work. It does not find the qcon. So does it work differently with plugins? And if so how does it work?

I am using groovy and catkin.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-03-16 00:38:14 -0500

TommyP gravatar image

This was a Python mistake. The file I did

from quad.qcon import *

in was called quad.py and that seems not to be a good idea. I renamed it and everything is working as expected.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-15 03:36:04 -0500

Seen: 171 times

Last updated: Mar 16 '13