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

Advice on mapping with custom information

asked 2012-07-29 23:30:45 -0500

bgagnon gravatar image

Hello,

When I first started using ROS, I didn't implement it to it's fullest extent and ended up writing code that was already written for me (much better none the less) and now I would like some direction on what I should do so that I don't go down this path again.

I'm working on mapping and navigation and would like to expand the amount of information that is kept in the map message. My current understanding is that, using slam_mapping, a laser scan is converted to a map topic which gets published. This map topic contains MapMetaData and an OccupancyGrid which says what the chances of collision with the robot is in a given spot on the map.

I would like to add more information to the map, for example (not what I'm actually doing, but same deal) storing temperature data as I build the map. I want to use what's already given to me to the fullest and utilize it properly. What should I do?

Currently, this is my best idea: Create my own topic type similar to that of the OccupancyGrid and instead of probability data, it will contain data about the temperature. If this is the way to go, how do I go about creating my own topic type?

All help greatly appreciated!

Blair

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-07-31 13:02:23 -0500

joq gravatar image

You question is pretty open-ended. I doubt you will get many detailed answers.

Creating your own messages to provide additional information is indeed a reasonable solution to this general type of problem.

This tutorial explains how to create ROS messages of your own.

edit flag offensive delete link more

Comments

Detailed answers are not what I'm looking for. I was looking for a "that seems reasonable" or "haha, why would you do that" or a "maybe you should think about..." So you answered my question well! Thanks for the advice!

bgagnon gravatar image bgagnon  ( 2012-08-01 01:09:27 -0500 )edit

Question Tools

Stats

Asked: 2012-07-29 23:30:45 -0500

Seen: 191 times

Last updated: Jul 31 '12