Gazebo | Ignition | Community
Ask Your Question

Problems with simulating my robot in a world with a heightmap.

asked 2021-10-05 09:55:39 -0500

Hawkinator gravatar image

updated 2021-10-14 10:20:19 -0500

Hi everyone,

when I try to spawn my robot into my heightmap world, it can not drive at all. The height of my heightmap is 1m. But when I spawn my robot at 10m high it stands still at this position (floating in the air). Here is the SDF file of my heightmap model: C:\fakepath\model_of_heightmap.png.

I also have a LIDAR sensor on my robot and the lasers should be visible in the gazebo world. For some reason these lasers are only visible when I spawn the robot at 10m high. So in short I have 2 problems: the robot can not drive in the heightmap world (which is possible in a world without a custom heightmap), and the second problem is that it wont show the LIDAR lasers.

I assume these 2 problems are related to each other. Does anyone know what I am doing wrong?

Kind regards

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2021-10-11 10:18:37 -0500

Hawkinator gravatar image

Apparently the performance will decrease massively when the size of the map is smaller than the number of pixels of the used grayscale image. So it worked for me loading in a 65x65 pixels grayscale image and making the size of the map 65x65 meters. This was the solution for me.

Kind regards!

edit flag offensive delete link more

answered 2021-10-14 04:36:18 -0500

Good to know!

Thank you for replying to your own question. I knew a guy that had the same problem. This answer helped him massively.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2021-10-05 09:55:39 -0500

Seen: 160 times

Last updated: Oct 14 '21