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

Axis to pixel conversion

asked 2012-07-05 10:47:59 -0500

Zee-Q gravatar image

Hi all,

I have developed a GUI in Qt4.x that shows the 2d map of environment which is being published by "gmapping" node. Now i want to add in that gui the position of robot which i think can be taken from /odom but when i try to draw it in my gui it shows very little change in pixels. My question is that how gmapping converts the axis coordinates to pixel information in /map. i am using electric on ubuntu 10.04 with Qt4.x Thanks in advance. Regards

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-07-05 10:58:50 -0500

MapMetaData, published by gmapping (also included in the OccupancyGrid message), should have everything you need. Specifically, the map resolution in meters/cell, and the map origin.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-05 10:47:59 -0500

Seen: 367 times

Last updated: Jul 05 '12