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

Attached object collides with environment

asked 2015-03-23 10:53:27 -0500

bluefish gravatar image

updated 2015-04-28 05:32:33 -0500

Hi!

I added an object into the world and attached it to the robot as described in this moveit-tutorial. As in the tutorial stated I attached the object with this piece of code:

ROS_INFO("Add an object into the world");

planning_scene_interface.addCollisionObjects(collision_objects);
sleep(5.0)
group.attachObject(co.id)

This all works fine, but while moving the robot with the attached object, collisions of this attached object and other objects in the environment are not detected. In fact, the object seems not attached while the robot is moving. It just pops up again at the target pose.

Anybody knows how a collision check can be achieved? (The attached object should be handled as part of the robot after being attached)

Thanks and regards

edit retag flag offensive close merge delete

Comments

Anybody an idea how to achieve it? I also tried the publisher from this tutorial. But there I have the same problem...

bluefish gravatar image bluefish  ( 2015-04-23 08:42:13 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-04-28 05:37:15 -0500

bluefish gravatar image

updated 2015-04-29 06:12:46 -0500

Okay, I think I found an answer myself now. When attaching the object, I only tried it without the real robot, until now. There, no collision at all was recognized between the attached object and the surrounding as stated above.

Since today I can test it with the real robot and there it seems to work perfectly. Without the real robot the ee_link was not published sufficiently and therefore the attachment did not work properly. At least this is my guess.

So in the end, the piece of code I posted above and which I took from the tutorial works perfectly fine.

edit flag offensive delete link more
0

answered 2015-04-29 07:05:54 -0500

Simon Schmeisser gravatar image

There is a known bug in Moveit. If you have a link without (collision) geometry, everything further down the kinetic chain will be ignored for collision checking. You can workaround this by adding small spheres or whatever to all links that do not have any collision geometry yet (tool0?)

https://github.com/ros-planning/movei...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-03-23 10:53:27 -0500

Seen: 479 times

Last updated: Apr 29 '15