Page 1 of 1

Unable to use BIT* as a planning algorithm

Posted: 18 Jun 2019, 02:50
by lyshello123
Hello, for motionPlanningAndGraspingDemo, I try to change the default planning algorithm to BIT*. But it didn't work and reported the following error: PathLengthDirectInfSampler only supports RealVector, SE2 and SE3 statespaces. (simOMPL.compute @ 'OMPL' plugin).

I have already searched this problem online. It seems that the key thing is that BIT* can only handle certain types of state spaces, since it needs to do informed sampling. I also try some other demos, the same error was reported. And how to solve this problem to make BIT* applicable? Thank you very much!

Best wishes!
From a student.

Re: Unable to use BIT* as a planning algorithm

Posted: 18 Jun 2019, 09:23
by fferri
The error message is quite clear: it only supports RealVector, SE2 and SE3 statespaces.

For practical reasons, the state space used by the OMPL plugin is always a compound state space (class ompl::base::CompoundStateSpace) even if it contains only one state space of type sim_ompl_statespacetype_joint_position , sim_ompl_statespacetype_pose2d, or sim_ompl_statespacetype_pose3d (which correspond respectively to OMPL's subspace types RealVector, SE2 and SE3).

There is no easy fix for the OMPL plugin, as compound state spaces are inevitable, and the use case for just one simple state space is quite limited.

I think it's easier to fix the BIT* motion planning algorithm, to generate a suitable projection (RealVector, SE2 or SE3) from any compound state space.

Re: Unable to use BIT* as a planning algorithm

Posted: 12 Feb 2024, 14:25
by haha7626
Can you give me an example for BIT* in Coppeliasim?

Re: Unable to use BIT* as a planning algorithm

Posted: 12 Feb 2024, 14:28
by fferri
You better off using Python OMPL bindings in an embedded Python script.