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

Could not find class in rqt plugin

asked 2017-11-17 05:26:28 -0600

ravijoshi gravatar image

I am developing rqt plugin. For this purpose, I initially created a python script called my_module.py and wrote rqt code into it. It was working fine.

Later on, I renamed the script file and provided a better name. I also renamed the class name inside it. However, now rqt is not able to load it. I even tried catkin_make and sudo python setup.py install commands on it. Below is the error:

RosPluginProvider.load(rqt_robot/robot Plugin): could not find class "robotPlugin" in module "<module 'rqt_robot.my_module' from '/usr/local/lib/python2.7/dist-packages/rqt_robot/my_module.pyc'>"

Any workaround, please? As always, thank you very much. Please note that I am using Python 2.7 in ROS Indigo on Ubuntu 14.04 LTS PC.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-18 06:10:22 -0600

ravijoshi gravatar image

I removed the old files and installed it again. More preciously, I did following steps:

  1. Find out the path where this package is installed and go there cd /usr/local/lib/python2.7/dist-packages/
  2. remove the complete package by rm -rf command
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-11-17 05:26:28 -0600

Seen: 331 times

Last updated: Nov 18 '17