Ask Your Question
0

rviz2 cannot show LaserScan messages in ROS2 dashing with gazebo

asked 2020-09-22 02:45:08 -0500

Phymin gravatar image

updated 2020-09-22 03:43:38 -0500

Hi,

I am really frustrated that I have tried for almost one day before I put the question here. I really cannot figure out where is the problem.

I follow the turtlebot3 simulation to create my own gazebo robot, and It can be shown normally in gazebo and I can also tele-operate it. Please see the following picture from gazebo gazebo image.

But when I open rviz2 and add LaserScan topic, the status shows OK, but there is no laser scan data shown. And I checked the topic list and topic echo it seems all OK. please see the following pictures. ros2 topic list

image description

image description

image description

Hope someone familiar with could help me out, thanks for advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-09-22 03:48:26 -0500

Phymin gravatar image

I have finally figured out where the problem is. Just check Unreliable option and the rviz2 can show laser scan points. Please see the picture below:

image description

But I don't know exactly why, hope someone can give further explanation about this

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

2 followers

Stats

Asked: 2020-09-22 02:45:08 -0500

Seen: 180 times

Last updated: Sep 22 '20