qibullet: pybullet.error: cannot import name PoseStampedWithSpeed

when I run the script “examples/pepper_ros_test.py”, I got the error info: Traceback (most recent call last): File "pepper_ros_test.py", line 22, in <module> wrap = PepperRosWrapper() File "/home/zxy/.local/lib/python2.7/site-packages/qibullet/ros_wrapper.py", line 50, in __init__ raise pybullet.error(MISSING_IMPORT) pybullet.error: cannot import name PoseStampedWithSpeed So I’d like to know if it’s caused by a problem with the naoqi_bridge_msgs version. Actually I check the source code from “https://github.com/ros-naoqi/naoqi_bridge_msgs” ,I really cannot find the PoseStampedWithSpeed. Can you tell me how to fix it ???

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Thank you, I have removed the clone and used apt-get again and it is now working fine just with the warning you have linked 😃

Okay I see. The weird thing is that if you installed the ROS packages using apt-get, and used qiBullet 1.4.0, you should have received a warning but not an error (see here). The warning might be confusing though, I’ll clarify it in the next version.

would you advise removing the git clones and reinstalling using apt-get?

It depends on what you want to do. The forked version has a better URDF model of the Pepper robot, so if you want to focus on tasks requiring an accurate geometrical model for Pepper, i would advise you to ensure that you indeed removed all of the packages installed with apt-get, clean and recompile the workspace, and use the forked version. (The RViz config should also be removed)

If you don’t care about the accuracy of the geometrical model, and you don’t want to recompile everything yourself, removing the clones and using apt-get is definitely the right choice.

I advise that you remove build and devel in your ros workspace, uninstall ros-kinetic-naoqi-driver and ros-kinetic-naoqi-bridge-msgs (with apt purge if these packages are installed), afterwards you can recompiled your workspace.