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

FLIR thermal camera with Slam_gmapping

asked 2012-02-20 00:49:14 -0600

Zee-Q gravatar image

updated 2014-01-28 17:11:25 -0600

ngrennan gravatar image

Hi all,

i am using ubuntu 10.04 with diamondback. currently i have erratic robot in some test environment in Gazebo. i am taking Laser scan and generating map by Gmapping package. what i want is to put thermal camera on that erratic robot and take some color information too which could also be visible on that map.

Any clues how to do it? (P.S bear with me i am a newbie of ROS)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-02-20 02:22:14 -0600

The map generated by gmapping is an occupancy grid map, with the grey scale color information being a a representation of the probability of occupancy of each grid cell. For this reason "drawing into the map" is not a intended use case from a SLAM system perspective.

A practical variant for visualization is probably using the Marker system for rviz. Using markers, you can leave the map unchanged and additionally publish information about detected objects. If you want to publish a dense thermal map of high resolution (with thousands of markers), this might choke up wireless connectivity/rendering etc. however.

If you really want to draw into the map: What you can do is listening to the map on the "/map" topic or retrieving it via the "/map" service. Once you have retrieved a copy, you can do whatever you want with the data. You can for example write the map data to a opencv image and then draw into that. Note that you can only visualize the map using the default map display option in rviz when it's available as a nav_msgs/OccupancyGrid and that this is fairly limited right now in terms of the colors it can display (See my answer here for details).

edit flag offensive delete link more

Comments

yes it helps much but for now i am much interested in how i am going to add thermal camera on erratic robot and publish some topic which have camera data as a message. If its not possible than is there any other solution in which i can have both Sick and FLIR at the same time.

Zee-Q gravatar image Zee-Q  ( 2012-02-20 10:32:45 -0600 )edit

This actually is a good question. As I'm interested in this too, I created this new one: http://answers.ros.org/question/28028/simulating-a-thermal-camera-in-gazebo

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2012-02-20 19:48:14 -0600 )edit

Question Tools

Stats

Asked: 2012-02-20 00:49:14 -0600

Seen: 744 times

Last updated: Feb 20 '12