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

how to show laser scanner data in rviz [closed]

asked 2013-09-13 20:50:20 -0500

Hamid Didari gravatar image

updated 2014-01-28 17:17:57 -0500

ngrennan gravatar image

hi guys i'm beginner in ros i want to show 04lx laser scanner in rviz and i used this command "roscore" "rosrun urg_node urge_node" "rosrun rviz rviz" but i can't see laser scanner data how can i see the laser data? is need another command?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Hamid Didari
close date 2014-02-21 08:16:54

2 Answers

Sort by ยป oldest newest most voted

answered 2013-09-13 22:05:51 -0500

Please see RViz documentation, its Built-In Display Types and particularly LaserScan display type.

edit flag offensive delete link more


tnx man :)

Hamid Didari gravatar image Hamid Didari  ( 2013-09-23 07:53:35 -0500 )edit

How is this the accepted answer? If you arn't going to answer the question properly, THEN DON'T ANSWER IT!!!!! People like you are why the learning curve for ros is a cliff. The documentation sucks, and telling people to go and read it instead of answering a simple question is why it's so steep.

Ben12345 gravatar image Ben12345  ( 2017-02-03 05:48:42 -0500 )edit

@Ben12345 If you read the suggested pages and still have questions, then ask them. (There is a button on the top right "Ask your question"). Also, I highly recommend to go through the ROS Tutorials and RViz User Guide.

Boris gravatar image Boris  ( 2017-02-03 09:18:08 -0500 )edit

answered 2014-02-21 06:53:30 -0500

Ken_in_JAPAN gravatar image

After launching Rviz, I set /scan as topic in LaserScan and set /laser as Fixed Frame in Global Options. Of course, I added LaserScan to Displays from default. I could see the laser data.

edit flag offensive delete link more


For new people to ROS, this answer works fine. Make sure to change the Global Options. Nevertheless, reading the documentation will help you further away.

Victor Gomez gravatar image Victor Gomez  ( 2014-08-18 02:53:17 -0500 )edit

@Ken_in_JAPAN Does /laser refers to the laser link in urdf?

stefanvan gravatar image stefanvan  ( 2018-04-06 04:28:39 -0500 )edit

without laser link on actual URDF, still you can visualise /scan data by just mentioning laser at global option.

Deepak_Kr_Yadav gravatar image Deepak_Kr_Yadav  ( 2020-06-26 03:12:54 -0500 )edit

Since I've wasted way too much time for this simple task, here an additional hint: If there is an error message like For frame [base_scan]: Frame [base_scan] does not exist, set the fixed frame in global options to exactly this name base_scan. Also see my answer here:

Benjamin Klaus gravatar image Benjamin Klaus  ( 2021-03-18 02:08:50 -0500 )edit

Question Tools



Asked: 2013-09-13 20:50:20 -0500

Seen: 10,206 times

Last updated: Feb 21 '14