Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Quite a lot of MoveIt is not exposed as python interfaces. I am not aware of a python wrapper for the planning scene. So if you want to use it as you propose, you will either have to write it in C++ or write a python wrapper for the PlanningScene class. The latter is definitely no small endeavor.

In C++ you will need to have a maintained (i.e. updating) planning scene. If you just create a PlanningScene object yourself, this will always be empty and not reflect the current world state. You could create a PlanningSceneMonitor to achieve this, although it would be much faster if you created a MoveGroupCapability for it. An alternative would be to check the generated trajectory beforehand.