moveit_msgs icon indicating copy to clipboard operation
moveit_msgs copied to clipboard

Add group_name to RobotTrajectory.msg related to MoveIt #2810

Open cambel opened this issue 4 years ago • 3 comments

Related to MoveIt draft PR #2810 Adding the group_name to the RobotTrajectories to keep track of them during simultaneous execution of multiple trajectories from different groups.

cambel avatar Sep 20 '21 02:09 cambel

why don't you just collect the set of joints specified in the joint trajectory method? I would prefer to get further away from the requirement to specify joint model groups everywhere in MoveIt and this somewhat counteracts the effort... Also, you still have to consider overlapping JMGs during checking, so I don't see the advantage of having the string here. :confused:

v4hn avatar Sep 20 '21 11:09 v4hn

That might be better discussed in the original PR, but in a nutshell, we did it this way because when we check for collisions between the two trajectories here, we need to give the group_name to the PlanningScene's isPathValid in order to limit the collision checking to that group. That API continues via isStateColliding and checkCollision all the way to the CollisionRequest in collision_common.h, which does not accept a set of joints. Opening that up is definitely out of scope for this PR.

felixvd avatar Sep 20 '21 12:09 felixvd

we did it this way because when we check for collisions between the two trajectories, we need to give the group_name to the PlanningScene's isPathValid in order to limit the collision checking to that group.

https://github.com/ros-planning/moveit/pull/847 has been open for three years by now... :sad:

Ok, I'm good with adding the group-name here as long as robot_trajectory::RobotTrajectory will respect it in the PR for MoveIt. It would still be a very good idea to support all use-cases in MoveIt where the name might be left empty.

v4hn avatar Sep 20 '21 12:09 v4hn