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

octomap decreasing probabilities when obstacle is not there anymore

asked 2016-01-19 07:45:27 -0500

l4ncelot gravatar image

Hi,

I've started using octomap. Basically I've been working with octomap_server and it's octomap_mapping.launch file. I'm basically transforming my laser scan data into pointcloud2 and then publishing it on topic which is used by octoma_server.

What I've found is that when there is some obstacle, it really determines it as obstacle. But when that same obstacle disappears, those occupied probabilities don't change and free space is considered as occupied forever.

I want to update all voxels probabilities before the end of laser beam so that after few cycles free space is considered as free space again. Because right now I think that with pointcloud voxels are just updated right in the place where given pointcloud is, but not in space between my robot and point.

Do I have to implement it on my own and where should I start? Or is there some other way of doing this? Or is my expectation about how this works wrong?

Thank you for advice.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-01-21 10:16:38 -0500

l4ncelot gravatar image

So I finally figured it out. My expectation about how scan beams were added into OcTree was wrong. And I did also set frame_id to world instead of actual sensor frame. So basically when was my quadrotor flying up in the air, octomap was thinking that sensor is still on the ground on position [0,0,0] which lead to beam from position [0,0,0] to end of the beam instead of position of my robot to end of beam...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-01-19 07:45:27 -0500

Seen: 494 times

Last updated: Jan 21 '16