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

Left side of laser scan visualization on android gets weird

asked 2013-10-17 01:50:38 -0500

grzebyk gravatar image

Hi. I'm trying to visualize the laser scan read on android. I am doing similar thing that can be found in many sample source codes. This means that I declare VisualizationView laserView, then I add two layers - laser scan and robot image by laserView.addLayer(new LaserScanLayer("scan")); laserView.addLayer(new RobotLayer("base_link")) and finally I execute it with nodeMainExecutor. The problem is that it display everything perfectly only on the right side of the robot, left side shows some kind of artifacts, remains from previous scans. The laser is hokuyo rug-04lx.

laser scan n my device

edit retag flag offensive close merge delete


Yeah. I described the problem but didn't ask the question. Do you know how to fix it? I was trying to manipulate the LaserScanLayer code but achieved nothing.

grzebyk gravatar image grzebyk  ( 2013-10-17 01:52:37 -0500 )edit

I have this problem and try to many methods to solve it,but achieved nothing.Can you solve it at the moment? Thanks

Tony10012 gravatar image Tony10012  ( 2017-02-15 04:48:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-22 07:19:53 -0500

Ernesto Corbellini gravatar image

Effectively the artifacts seen are remainders of old scans. The solution was to update the limit of the vertex buffer according to the points received to only show the new data. This was fixed by this PR.

edit flag offensive delete link more

Question Tools



Asked: 2013-10-17 01:50:38 -0500

Seen: 1,103 times

Last updated: Feb 22 '17