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

How to get esdf map from tsdf map using voxblox? #386

Open
Lbaron980810 opened this issue Nov 25, 2021 · 5 comments
Open

How to get esdf map from tsdf map using voxblox? #386

Lbaron980810 opened this issue Nov 25, 2021 · 5 comments

Comments

@Lbaron980810
Copy link

Hi, there. Thanks for making voxblox and voxblox_ground_truth open source, both of them are great works and helpful!
Recently I'm trying to get a esdf map of gazebo world, so I used voxblox_ground_truth to get the tsdf file first, then used voxblox to translate tsdf map to esdf map. However, there's nothing in the "generate_esdf_srv" service. So can you help me with how to get esdf map from tsdf map?
Thanks sincerely!

@Austen-G
Copy link

Austen-G commented Mar 1, 2024

I was able to do this by saving the output .tsdf file as a .vxblx file, calling the load_map service with this file, and as long as a static transform is defined between /map and /sensor_frame somewhere it worked:

blender_to_esdf

@12ahmed52
Copy link

i cannot generate the esdf map although i called the /save_esdf map service and when i load the generated map is the vox_blox planner it says that the map is tsdf not esdf chow can I generate the esdf map

@Austen-G
Copy link

I haven't tried those, I just save the topic outputs into .bag files and play them back when I need them as input.

Also I'm not a dev on this or anything, I've just been tinkering with it to support some research. But something I've found since my last comment:

For my purposes at least, voxblox ground truth doesn't let me mess with the specific settings (or at least I don't know how to) that help make the maps more usable (truncation distance, etc), so I use a simulated sensor in Gazebo instead. If positioned far enough away you can view the whole map, but in reality putting that sensor into a simulated slam package like ORB-Slam can likely be used to help move it around.

You can do some movement without SLAM, but it's difficult to completely generate the map with a sensor without it.

@Wshtm
Copy link

Wshtm commented May 10, 2024

@Austen-G Hi, could you please tell me that how to complete "the static transform between /map and /sensor_frame"? I try to use voxblox/load_map to load the map generated by Voxblox_gound_truth, but it returns error. Thank you so much!

@Austen-G
Copy link

A couple of ways, to keep things easy when I use simulated sensors in Gazebo, I use a plugin to publish the exact sensor position/rotation as a transform. The localization portion of a SLAM solution should also be able to publish this transform.

Since you're not building maps yourself though, try just using the static_transform_publisher from the tf package

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