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

Left side of laser scan visualization on android gets weird

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

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

Comments

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 -0600 )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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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

2 followers

Stats

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

Seen: 1,132 times

Last updated: Feb 22 '17