Gazebo | Ignition | Community
Ask Your Question

Having trouble with Gazebo9 heightmap

asked 2019-10-09 19:52:03 -0500

kestrel1311 gravatar image

Hello. I am trying to build a custom world using a heightmap for one of my projects. I was able to create a heightmap successfully two nights ago, but the png file was 129 X 129 and I wanted to increase to 500 X 500. When I made new heightmap and replaced it with the working version, the program failed and I am getting the following error:

/usr/include/boost/smart_ptr/shared_ptr.hpp:734: typename boost::detail::sp_member_access<t>::type boost::shared_ptr<t>::operator->() const [with T = gazebo::msgs::Response; typename boost::detail::sp_member_access<t>::type = gazebo::msgs::Response*]: Assertion `px != 0' failed.

I tried reinstalling gazebo, reverting back to working version in the repository and remaking the entire heightmap model 3 times, but it either returns black screen (I am assuming I am outputting anything) or gazebo just simply crashed. I think I might have messed up the gazebo when I tried to use a heightmap with a bigger size, but I do not know how to fix this part. Could anyone give me a help with this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-11 10:06:03 -0500

hburau gravatar image

updated 2019-10-11 10:10:08 -0500

For heightmaps to work with gazebo the height and width needs to be 2n+1. So for your use case the closest accepted dimensions would be 513x513.

edit flag offensive delete link more


Thank you for the comment. I tried reverting back to 129 x 129 heightmap, but the model is not still loading. Is it recommended to just start a new model from scratch?

kestrel1311 gravatar imagekestrel1311 ( 2019-10-11 13:38:05 -0500 )edit

How long did you wait for the heightmap to load?

hburau gravatar imagehburau ( 2019-10-16 05:37:45 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-10-09 19:52:03 -0500

Seen: 141 times

Last updated: Oct 11 '19