ANYbotics / grid_map

Universal grid map library for mobile robotic mapping
BSD 3-Clause "New" or "Revised" License
2.53k stars 794 forks source link

Publish a Float32MultiArray in a GridMap message #412

Closed Charifou closed 5 months ago

Charifou commented 5 months ago

I tried to create a Float32MultiArray and affect it to a GridMap message data. The grid is published, but when I visualised it in rviz I have this error/warning "isRowMajor() failed because layout label is not set correctly." which doesn't affect the publisher node nor rviz cause I can see the grid. I used this script to create the float array. Can someone help me ?

Charifou commented 5 months ago

message.layout.dim[0].label must be either "column_index" or "row_index" in GridMap.