Open psigen opened 8 years ago
@psigen I noticed the same behaviour. It tells you that "(eval 7 >= 26) not enough values 7<26" So I interpreted this as "you can't plan the end effector pose for 26 DOF" which makes sense to me.
What would you like to happen?
Well, the thing is: you absolutely can plan the end effector pose for 26 DOF. PlanToEndEffector
is simply enforcing a constraint on the final end-effector transform of the active manipulator, and any number of DOFs can be used to form a plan that satisfies that constraint.
In this case, the active end effector is left_arm
, so the planning operation is free to do whatever it wants with whatever DOFs are active to move the left arm end-effector transform to the desired final pose. I believe that PlanToEndEffectorPose
implicitly assumes that it should take the active manipulator, use that manipulator's DOFs, and plan in that space.
But that's just the semantics argument. The even more salient issue here is that this is failing in SnapPlanner
in a way that kills all the other planners (it's not a PlanningError, it's an openrave_exception
).
@psigen Ok I see. If PlanToEndEffector pose can work without setting the active DOF, perhaps a Unit Test should also be added for that?
That's a good idea. I think this is the intended behavior, we can confirm with @mkoval.
Open
herbpy console
and do the following: