ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Question about OccupancyGrid

asked 2022-05-03 19:39:50 -0600

distro gravatar image

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 "from_frame" and then "to_frame" right?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-05-03 20:28:40 -0600

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

edit flag offensive delete link more

Comments

@stevemacenski not sure how exaclty to take the origin into account. Maybe I dont get what you mean? mind writing a calculation?

distro gravatar image distro  ( 2022-05-03 21:13:03 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2022-05-03 19:39:50 -0600

Seen: 106 times

Last updated: May 03 '22