Question about OccupancyGrid
If I have am getting map data from the occupancygrid /map topic
,and I calculate the pixel location of every cell in the map, I can get the pose location of every cell in the map from pixel location via map resolution (meter/pixel). My confusion(probably dumb) is whether or not said poses are in the map frame? if so I can get to any given pose with move_base_simple and a posestamped
as long as I make sure the frame_id the posestamped uses is "map". Is this correct?
Second question, with the waitfortransform
tf function arguments are arranged in "fromframe" and then "toframe" right?
Asked by distro on 2022-05-03 19:39:50 UTC
Answers
Assuming that you are correctly converting pixel coordinates to map coordinates, then yes, that is the map
frame. Make sure to take into account the origin.
"from_frame" and then "to_frame"
Correct
Asked by stevemacenski on 2022-05-03 20:28:40 UTC
Comments
@stevemacenski not sure how exaclty to take the origin into account. Maybe I dont get what you mean? mind writing a calculation?
Asked by distro on 2022-05-03 21:13:03 UTC
Comments