Ask Your Question

map conversion to image (hector_compressed_map_transport ((GMAPPING)))

asked 2018-09-11 03:16:17 -0600

RoboRos gravatar image

updated 2018-09-11 07:41:26 -0600


I am trying to use hector_compressed_map_transport for other slam algorithms too.

I know that it uses /pose. I am publishing pose by the help of in the required msgType. But map never shows up (window freezes).

Any help please.?

I am using kinetic and trying to view the map by rosrun image_view image_view image:=/map_image/full _image_transport:=compressed (It work perfect for hector slam).


rostopic list:

edit retag flag offensive close merge delete


Just to check is your 'other slam algorithm' also publishing the map on the same topic as well as the pose? Can you show us the output of rostopic list as well.

PeteBlackerThe3rd gravatar imagePeteBlackerThe3rd ( 2018-09-11 05:09:51 -0600 )edit

I have checked it with hector slam. And yes it is working. Hector publishes pose by default while for gmapping i am using pose_publisher. However, one difference i have found is that hector also have a topic /poseupdate in addition. C result of rostopic list in question.

RoboRos gravatar imageRoboRos ( 2018-09-11 05:40:00 -0600 )edit

@PeteBlackerThe3rd No it is not working. I gues i posted the wrong topic list there. I have updated it.

RoboRos gravatar imageRoboRos ( 2018-09-11 07:40:23 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-11 06:34:09 -0600

Okay,you're trying to view the map using this command rosrun image_view image_view image:=/map_image/full _image_transport:=compressed i.e. you're looking for a topic called /map_image/full but looking at the output of rostopic list this doesn't exist.

There is however a topic called /map if the type of this topic is an image then you'll be able to view it by updating the topic name in your image_view command.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-09-11 03:16:17 -0600

Seen: 121 times

Last updated: Sep 11 '18