ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

moveit-noetic, How to attach one object with two end-effectors?

asked 2022-11-28 00:24:25 -0500

don gravatar image

i'm trying to grasp one object with two arms(A arm and B arm) by this process.

  1. Attach object with A arm (l_tool_frame).
  2. Attach object with B arm (r_tool_frame).

but it didn't work. when i attach the object to B arm, It is automatically detached from A arm.

I want to attach the object with two arms. Is there any way to do this?


This code is the first way i tried it.

moveit_msgs::AttachedCollisionObject l_pad_attach;
pad_attach.link_name = ("l_tool_frame");
pad_attach.object = add_object[0];
current_scene.applyAttachedCollisionObject( pad_attach );

moveit_msgs::AttachedCollisionObject r_pad_attach;
pad_attach.link_name = ("r_tool_frame");
pad_attach.object = add_object[0];
current_scene.applyAttachedCollisionObject( pad_attach );

This code is the second way i tried it.

moveit_msgs::AttachedCollisionObject pad_attach;
pad_attach.link_name = ("l_tool_frame","r_tool_frame");

pad_attach.object = add_object[0];
current_scene.applyAttachedCollisionObject( pad_attach );

There is no error, but it is attached only to "r_tool_frame"

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-11-29 06:52:21 -0500

Mike Scheutzow gravatar image

I don't think that standard moveit supports this. The moveit system makes the simplifying assumption that a kinematic chain has only a single "pathway" of links from root to "object". I don't know how much custom code it would take for you to support a closed-loop chain configuration.

edit flag offensive delete link more

Comments

Thank you for your comment!!

don gravatar image don  ( 2023-01-16 20:51:15 -0500 )edit

I was waiting for another comment, but seeing that it hasn't been commented yet, there must be no solution yet!

don gravatar image don  ( 2023-01-16 20:53:27 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-11-28 00:24:25 -0500

Seen: 111 times

Last updated: Nov 29 '22