How is map data analyzed?

asked 2019-07-18 11:18:53 -0600

Cero10 gravatar image

updated 2019-07-18 12:29:03 -0600

Hello I would like to make sure the way I am reading Occupancy grid maps is right.

based on info on the message type I know the data array is in row-major order.

The question is the width number increase from left to right? height increases from bottom to top?

For example, if = 600 = 400 = 0.05 = -15 = -10 position xy(0,0)

whats the map_data array number for position x=0,y=0?

I have this code in Python but I am not sure if its right:

xx = (abs( - x)/(**
xx = round(xx,0)
yy = (abs( - y)/(**
yy = round(yy,0)
listno = ((*
edit retag flag offensive close merge delete