moveit_task_constructor icon indicating copy to clipboard operation
moveit_task_constructor copied to clipboard

Enable collisions visualization

Open mjimenezm00 opened this issue 9 months ago • 6 comments

Adds a new method appendMarkers to append markers to solutions. Introduces a utility function collectInvalidStateMarkers to collect invalid state markers from trajectories. Adds the collection of collisions in the conect stage code if the motion plan is invalid.

mjimenezm00 avatar Jun 02 '25 06:06 mjimenezm00

There is a fundamental issue with this: markers are global to a solution. However, collision markers should be local in time, shouldn't they?

Actually, collision markers are only part of the connect stage, where they are being added. image

mjimenezm00 avatar Jun 02 '25 10:06 mjimenezm00

There is a fundamental issue with this: markers are global to a solution. However, collision markers should be local in time, shouldn't they?

Actually, collision markers are only part of the connect stage, where they are being added.

You misunderstood me: markers are stored per sub trajectory of a solution, e.g. per solution of the connect stage. However, this (failed) solution has multiple waypoints and collisions for all of them are visualized simultaneously using this approach. On the other hand, it was done this way in MoveIt for years as well...

rhaschke avatar Jun 02 '25 14:06 rhaschke

There is a fundamental issue with this: markers are global to a solution. However, collision markers should be local in time, shouldn't they?

Actually, collision markers are only part of the connect stage, where they are being added.

You misunderstood me: markers are stored per sub trajectory of a solution, e.g. per solution of the connect stage. However, this (failed) solution has multiple waypoints and collisions for all of them are visualized simultaneously using this approach. On the other hand, it was done this way in MoveIt for years as well...

Okey, I understand it now.

mjimenezm00 avatar Jun 03 '25 05:06 mjimenezm00

Hello! I was wondering if there is any reason why this hasn't been merged yet. If there's anything I can do to help move it forward, please let me know!

mjimenezm00 avatar Jun 11 '25 05:06 mjimenezm00

Originally, CI failed for unrelated reasons. This seems to be fixed now. However, now we have a merge conflict. Can you please resolve that?

rhaschke avatar Jun 11 '25 10:06 rhaschke

Originally, CI failed for unrelated reasons. This seems to be fixed now. However, now we have a merge conflict. Can you please resolve that?

Okay! I've resolved the merge conflict and it should be fixed now

mjimenezm00 avatar Jun 11 '25 11:06 mjimenezm00

Is there anything preventing this PR to merged? Thanks!

leander2189 avatar Aug 07 '25 11:08 leander2189

Yes, there were a few other improvements necessary: mainly visualizing collisions from any planning stage, not only Connect. However, it was simpler to implement them directly instead of guiding you through the process. Unfortunately, I just found time for this today. Sorry for the delay. As we will only merge against branches master or ros2, I'm going to close this PR here in favor of #708.

rhaschke avatar Aug 13 '25 13:08 rhaschke