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

ROS2 and Rviz : only displays values with a radius < 1 meter around the laser [closed]

asked 2018-07-26 22:35:39 -0600

Marc Testier gravatar image

Hello,

I'm using ROS2 bouncy and Rviz, both built from source on Ubuntu 18.04 and I'm trying to display the laser scan on Rviz, but it only shows the value that are on a 1 meter radius around the laser.

Did I miss a parameter in Rviz ? Is it a bug ?

A bit more details : I'm using an Hokuyo ust-20lx, which is supposed to have ~20 meters range, with the urg_node package from link text which is a version for Beta2 (or maybe Ardent, not sure) that I have just slightly modified to make it work on Bouncy. Everything works fine and I've checked the published values which are normals, but rviz only shows values whose range is < 1 meter. I have tried the laser on ROS1 melodic with the urg_node and rviz and it shows the normal values.

Any suggestion ? Should I post an issue on rviz' github ?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Marc Testier
close date 2018-08-07 02:53:58.391905

Comments

2

It's not an answer, but since I've run into similar problems and have been able to reproduce it using a dummy node, I've submitted it as an issue on the ros2/rviz github page, https://github.com/ros2/rviz/issues/341

eric1221bday gravatar image eric1221bday  ( 2018-07-28 15:46:40 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2018-07-30 13:48:06 -0600

eric1221bday gravatar image

Alright So I feel confident in answering this now that I've figured out the problem.

This behavior is actually a very nasty bug caused by a collision of two default arguments in the rviz LaserScan display plugin. You can read more about it in the pull request I've submitted here.

The pull request is still in review so unless you're willing and able to build rviz2 and probably ros2 from scratch as well you would just have to wait until the next release.

Hope this helps

edit flag offensive delete link more

Comments

Indeed, I tried your solution and it works.

Marc Testier gravatar image Marc Testier  ( 2018-07-30 21:03:01 -0600 )edit

Could you provide some details about the steps required to build rviz? I came across this undesired behaviour in 2020. I am using ros noetic.

UserK gravatar image UserK  ( 2020-06-23 20:14:57 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2018-07-26 22:35:39 -0600

Seen: 320 times

Last updated: Jul 30 '18