Open peter-mitrano-bg opened 6 months ago
As a side note, it could be nice to make the Pose
type re-shapeable. I'm not sure if it is already, but I didn't see how one would do that. Having this would make implementing the more sophisticated error checking easier I think.
I tested added a pose cost metric to goalset planning, but it fails because the QuatToMatrix function assumes only one batch dimension. To reproduce, add these lines and run
demo_motion_gen_goalset
.Stack trace:
Conceptually, I would expect this type of planning query to be valid. I would like to maintain the current pose (in certain dimensions) while using a goalset to expand the possible solutions instead of just using one goal pose. As long as the
hold_vec_weight
and thegoalset
are comptaible. Perhaps this could be addressed by checking the batch shape in theupdate_pose_cost_metric
function?With this change, it seems to plan as expected! But of course this means no helpful error message. A better test perhaps would be to check if any of the projected goal poses are valid, and if none of them are, then print the warnings?