LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not enough data points out of hokuyo lidar on robotics simulator

Hi,

 

We've been using the hokuyo URG series lidar in the robotics simulator but we can't get more than 29 data points out of it. We get hundreds when running the sensor in real life. Is there a way to increase the number of data points read in the simulator? It is too low to be useful at the moment.

 

thanks.

 

(Using Labview Robotics 2012)

0 Kudos
Message 1 of 5
(3,073 Views)

Hi RubberDuck, 

 

Have you tried running the Goalkeeper.vi example code? It uses a Lidar simulation to block a ball. 

 

It is possible that you have a loop rate that is too slow, which is causing you to get less than the expected number of values. 

 

-N

National Instruments
Staff Certification Engineer
0 Kudos
Message 2 of 5
(3,039 Views)

Hi,

 

I've tried the goalkeeper example code and that also gets out 29 data points. Changing the loop rate does not seem to affect this. Any other ideas to try?

 

thanks.

0 Kudos
Message 3 of 5
(3,024 Views)

I believe the default scan angle for the simulated Hokuyo lidar sensor is 5 degrees.  With max and min angles of +-70 degrees, this explains why you're seeing 29 data points.  You can change these settings in the Simulator wizard.  Right-click the simulation target in the project, and select Properties.  In the wizard, select the Hokuyo sensor in the tree, and scroll down to change the "Max Angle", "Min Angle", and/or "Scan Angle" parameters.

sim wizard.png

Message 4 of 5
(3,010 Views)

Awesome, that works 🙂 Thanks.

0 Kudos
Message 5 of 5
(3,007 Views)