Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while running move_group_python_interface_tutorial.py #842

Closed
sakshri20 opened this issue Apr 16, 2018 · 1 comment
Closed

Issue while running move_group_python_interface_tutorial.py #842

sakshri20 opened this issue Apr 16, 2018 · 1 comment

Comments

@sakshri20
Copy link

I am new to both moveit and python and I am following this tutorial:
http://docs.ros.org/kinetic/api/moveit_tutorials/html/doc/pr2_tutorials/planning/scripts/doc/move_group_python_interface_tutorial.html

but I am getting an error while executing the following command:
rosrun moveit_tutorials move_group_python_interface_tutorial.py

Here is the console output:

============ Starting tutorial setup
[ INFO] [1523909730.395710578]: Loading robot model 'pr2'...
[ INFO] [1523909730.730948123]: Loading robot model 'pr2'...
[ WARN] [1523909730.747445345]: The root link base_footprint has an inertia specified in the URDF, but KDL does not support a root link with an inertia. As a workaround, you can add an extra dummy link to your URDF.
[ INFO] [1523909730.773330740]: Loading robot model 'pr2'...
[ WARN] [1523909730.790229082]: The root link base_footprint has an inertia specified in the URDF, but KDL does not support a root link with an inertia. As a workaround, you can add an extra dummy link to your URDF.
[ INFO] [1523909730.814649078]: Loading robot model 'pr2'...
[ WARN] [1523909730.831617816]: The root link base_footprint has an inertia specified in the URDF, but KDL does not support a root link with an inertia. As a workaround, you can add an extra dummy link to your URDF.
[ INFO] [1523909730.857104219]: Loading robot model 'pr2'...
[ WARN] [1523909730.874879240]: The root link base_footprint has an inertia specified in the URDF, but KDL does not support a root link with an inertia. As a workaround, you can add an extra dummy link to your URDF.
Traceback (most recent call last):
File "/home/sakshi/ws_moveit/src/moveit_tutorials/doc/pr2_tutorials/planning/scripts/move_group_python_interface_tutorial.py", line 243, in
move_group_python_interface_tutorial()
File "/home/sakshi/ws_moveit/src/moveit_tutorials/doc/pr2_tutorials/planning/scripts/move_group_python_interface_tutorial.py", line 70, in move_group_python_interface_tutorial
scene = moveit_commander.PlanningSceneInterface()
File "/home/sakshi/ws_moveit/src/moveit/moveit_commander/src/moveit_commander/planning_scene_interface.py", line 62, in init
self._psi = _moveit_planning_scene_interface.PlanningSceneInterface()
Boost.Python.ArgumentError: Python argument types in
PlanningSceneInterface.init(PlanningSceneInterface)
did not match C++ signature:
init(_object*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)

I am using ubuntu 16.04, ros kinetic and python 2.7.
Can someone please suggest me a solution or direct me to a similar issue where a solution is discussed.

@BryceStevenWilley
Copy link
Contributor

I just ran into this issue as well. The problem comes from the fact that #835 was recently merged, which added name-spacing capabilities to most of the python interface, meaning that you have to pass in the namespace string. This is why in

Boost.Python.ArgumentError: Python argument types in
PlanningSceneInterface.init(PlanningSceneInterface)
did not match C++ signature:
init(_object*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)

The C++ signature expects a string. It seems that PR forgot to change this line to pass the string. It's an easy fix, I'll open a PR for it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants