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

not showing entire octomap #69

Open
borcherd opened this issue May 7, 2020 · 3 comments
Open

not showing entire octomap #69

borcherd opened this issue May 7, 2020 · 3 comments

Comments

@borcherd
Copy link

borcherd commented May 7, 2020

I'm working on a project where a UAV needs to map an entire outdoor environment. Running in gazebo, i've got rtabmap which creates a pointcloud, and its being converted to an octomap with octomap_server to have the ability to save it to a .bt file. The only problem is that when looking at the octomap that octomap_server creates, its not the entire pointcloud converted to an octomap but only a part.
image
my launchfile looks like this but I dont think that its got anything to do with that.
image
anybody any idea?

@jiayinglin-rwth
Copy link

I also have the similar problem. It seems that the sensor_model/max_range is based on the fixed map frame, instead of the moving sensor frame(base_link). Which means if you set the max_range to 200 or more, or set the origin of the map frame in the middle of the octomap, you can see more of the octomap, but it is not a clean solution.

@tadteo
Copy link

tadteo commented Sep 22, 2020

But they suggest to set the input in the map frame and the sensor_model in this way seems to be in the centre of the map frame. How can we correct this problem? Should we just modify the sensor_model/max_range or have I bad understand ho to fed the input to the algorithm?

@jiayinglin-rwth
Copy link

Hey I have solved the problem. I had used the transformed pointcloud as input, which was actually wrong.
here is how we solved it:

  1. input point cloud for the octomap need to be the one with the local coordinate (in our case it is odom, without any coordinate transformation)
    please make sure that the header of the point cloud includes the right frame id
  2. then do the coordinate transformation seperately (we implemented another node which use GNSS and IMU to do the transformation)
  3. then in the octomap the fix map frame is "world" in our case, and base frame is the moving local frame

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

3 participants