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

how to remove collision objects from Rviz by code

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

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

Comments

Also referenced in this follow-up question

fvd gravatar image fvd  ( 2020-10-18 23:47:35 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Question Tools

2 followers

Stats

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

Seen: 937 times

Last updated: Dec 05 '18