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

`Message No map received` in Rviz

asked 2013-03-04 05:31:46 -0600

Amal gravatar image

updated 2013-04-20 02:16:49 -0600

Hi,

I try to build a map in Rviz using turtlebot simulation in gazebo. First I create a package and write a launch file which open GAZEBO world and turtlebot in that environment ...

That is the Launch file

<launch>


 <node name="gazebo" pkg="gazebo" type="gazebo" args="-u $(find gazebo_worlds)/worlds/simple_office.world"/>

 <param name="/use_sim_time" value="true"/>

 <node name="gazebo_gui" pkg="gazebo" type="gui"/>

 <include file="$(find turtlebot_gazebo)/launch/robot.launch"/>

 <include file="$(find turtlebot_teleop)/keyboard_teleop.launch"/>

</launch>

Then I run rosrun gmapping slam_gmapping scan:=base_scan _odom_frame:=odom_combined

Then open Rviz with rosrun rviz rviz -d 'rospack find turtlebot_navigation' /nav_rviz.vcg , this command does not open plugins required for gmapping as it can not locate nav_rviz.vcg, so finally I open rviz from launch file

<launch>

 <node pkg="rviz" type="rviz" name="$(anon rviz)" args="-d $(find turtlebot_navigation)/nav_rviz.vcg">  </node>

</launch>

It work well at lest it run all requirements for gmapping ....

The problem now that when I move robot in gazebo, robot move in rviz too but does not make a map, and I find that massage in rviz : Message No map received

Edit I write this command

amal@amal-HP-G62-Notebook-PC:~$ rosrun gmapping slam_gmapping scan:=base_scan _odom_frame:=odom_combined

and nothing else in is written in terminal see warning

All nodes that run and topics

Edit2 That is the map but I think it will not accurate if there is more details in the environment and It seems to be footprints !!

Edit3

Hi, I have a problem now, when I open RVIZ it seem there is a problem in laser scan, map, robot model, and tf here is

do not know which file I have to check gyro in !! That is the error

any suggestion , Thanks

edit retag flag offensive close merge delete

Comments

What is the gmapping output.

dornhege gravatar image dornhege  ( 2013-03-04 05:41:36 -0600 )edit

it does not get any output on rviz

Amal gravatar image Amal  ( 2013-03-04 06:14:12 -0600 )edit

I meant the console output.

dornhege gravatar image dornhege  ( 2013-03-04 06:21:57 -0600 )edit

I edit the Q

Amal gravatar image Amal  ( 2013-03-04 06:36:17 -0600 )edit

Can you check if there is laser data?

dornhege gravatar image dornhege  ( 2013-03-04 06:39:59 -0600 )edit

how to do this ?!

Amal gravatar image Amal  ( 2013-03-04 06:42:07 -0600 )edit

The simplest way would be an rviz display.

dornhege gravatar image dornhege  ( 2013-03-04 07:43:53 -0600 )edit

I edit the Q

Amal gravatar image Amal  ( 2013-03-07 04:05:34 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2013-03-07 04:27:48 -0600

dornhege gravatar image

Remove the remapping of scan to base_scan. You are publishing the laser on /scan, so no remapping is needed.

edit flag offensive delete link more

Comments

sorry I do not understand which remapping ?

Amal gravatar image Amal  ( 2013-03-07 04:59:48 -0600 )edit

The remapping of scan:=base_scan

dornhege gravatar image dornhege  ( 2013-03-07 07:11:12 -0600 )edit

Question Tools

Stats

Asked: 2013-03-04 05:31:46 -0600

Seen: 9,622 times

Last updated: Apr 20 '13