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

Grid map and map_server

asked 2020-11-10 12:10:54 -0500

Eman.m gravatar image

updated 2020-11-11 05:52:28 -0500

miura gravatar image

Hi I am implementing global planner, my map is no image but 2d array of 1 and 0

Should I use map_server? How can makePlan receives the map? In which format?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-10 13:00:30 -0500

I think the easiest would be to write some code to turn your array into a PGM file and a yaml file describing it (dimensions, origin). Once you have that you can use map_server. Not sure what your preferred language is, but in node.js you can easily create PGM files using https://www.npmjs.com/package/pgmjs or https://github.com/thejh/node-dumb-pg....

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-11-10 12:10:54 -0500

Seen: 157 times

Last updated: Nov 10 '20