Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octomap does not clear obstacles that were removed #39

Open
atzzy opened this issue Sep 2, 2018 · 3 comments
Open

Octomap does not clear obstacles that were removed #39

atzzy opened this issue Sep 2, 2018 · 3 comments

Comments

@atzzy
Copy link

atzzy commented Sep 2, 2018

I am running Ubuntu 16.04 LTS, ROS Kinetic and Gazebo 8.6
When I place an obstacle in gazebo, Moveit is able to detect the object and voxels are seen on RVIZ. However when I remove the object or shift the object, the voxels at where the object previously was does not clear or disappear. How can I get Octomap to update the map without having the clear the map everytime?

Object placed at Position A:
screenshot from 2018-09-02 14-52-45

Object moved to Position B but RVIZ still shows object at Position A:
screenshot from 2018-09-02 14-53-03

@wilselby
Copy link
Owner

Maybe there is an octomap setting that clears obstacles? I know the navigation package has parameters for that.

@sdfryc-uts
Copy link

sdfryc-uts commented May 29, 2019

Related information: https://answers.ros.org/question/287390/

Unfortunately I was unable to find a simple solution to this. For my application I was able to pre-process the point cloud data before sending it to Moveit by converting all NaN values to be equal to the 'octomap_max_range' value. This should clear cells that are no longer occupied, however this increases the amount of ray-tracing required which can be computationally expensive.

@kvnptl
Copy link

kvnptl commented May 26, 2021

I am running Ubuntu 16.04 LTS, ROS Kinetic and Gazebo 8.6
When I place an obstacle in gazebo, Moveit is able to detect the object and voxels are seen on RVIZ. However when I remove the object or shift the object, the voxels at where the object previously was does not clear or disappear. How can I get Octomap to update the map without having the clear the map everytime?

Object placed at Position A:
screenshot from 2018-09-02 14-52-45

Object moved to Position B but RVIZ still shows object at Position A:
screenshot from 2018-09-02 14-53-03

I am facing exactly the same issue. Right now, rosservice call /clear_octomap is the only workaround for me.

Is there any better way of doing this?

Configuration: ROS melodic and Ubuntu 18.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants