Removing points from collision maps [closed]

asked 2012-07-20 06:17:25 -0500

I'm trying to allow collisions between an arm and certain parts of the environment. Although the planning environment supports setting some allowed collisions, I've never seen this working for motion planning purposes (see some past questions of mine on this purpose). So I tried to publish a planning_scene_diff with some of the boxes removed. However it is my understanding that these a planning scene diff is an incremental update, i.e. only new obstacles can be added. Is this true? How can I remove parts of the collision map?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-03-27 19:04:17.120357


It's possible to have more precision ?

If you use a octomap for motion planning, it's easy. Just write your collision_map in the good topic of environment_server. Environment server see only the last map. You don't need to remove parts of the collision map.

jep31 gravatar image jep31  ( 2012-08-20 01:24:57 -0500 )edit

That's what I'm doing. I though I could manipulate the octomap without having to write a new node!

Lorenzo Riano gravatar image Lorenzo Riano  ( 2012-08-20 06:01:04 -0500 )edit

There is a service call in octomap_server to delete obstacles in a certain bounding box, I believe collider should also have that...

AHornung gravatar image AHornung  ( 2012-08-20 06:04:30 -0500 )edit

The collider node has a bbxquery service, but it's used to retrieve the status of an area of the octomap. AFAIK there's no service to clear parts of the map. I ended up writing my own node for this, and this spawned a new question "Service spoofing - overriding - renaming" (the link is to long)

Lorenzo Riano gravatar image Lorenzo Riano  ( 2012-08-21 05:32:49 -0500 )edit

If you feel like recompiling yourself, it should be pretty easy to add the clearBBXSrv functionality from OctomapServer.cpp to collider.

AHornung gravatar image AHornung  ( 2012-08-21 22:22:58 -0500 )edit