Ask Your Question
1

how to remove collision objects from Rviz by code

asked 2018-09-05 06:00:05 -0600

enrico gravatar image

Hi all,

I was wondering if a function able to remove collision objects from world do exists...

because the

planning_scene_interface.removeCollisionObjects(object_ids)

function requires at least 0.4/0.5 seconds delay to be effective on Rviz, but my target is to remove it istantaneously. I know there was a similar issue with the placement of an object in the world, because also the function

addCollisionObjects

requires that delay in order to be effective in Rviz. But this has been solved by using another function:

applyCollisionObject

So if anyone has ever dealt with these things please try to help me. Thanks in advance.

ROS Kinetic, Ubuntu version 16.04

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-05 02:46:08 -0600

aPonza gravatar image

You can use bool applyCollisionObject(const moveit_msgs::CollisionObject& collision_object); by specifying collision_object.operation = collision_object.REMOVE; when you create the moveit_msgs::CollisionObject

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-09-05 06:00:05 -0600

Seen: 167 times

Last updated: Dec 05 '18