How to set the detecting configuration

The default opening angle is set to maximum. The laser module is able to detect from -2.0923 rad to 2.0923 rad. If you don't need such an opening angle, you can modify these values to reduce the size of the result array.

Python example:

import naoqi from naoqi import ALProxy laser=ALProxy("ALLaser","127.0.0.1",9559) laser.setOpeningAngle(-1.57,1.57)

The hokuyo laser module is able to detect from 20 mm to 5600 mm. If you (again) want to delete the values from the result array you don't need, you can try to change the detecting length of the laser by tipping theses lines:

Python example:

import naoqi from naoqi import ALProxy laser=ALProxy("ALLaser","127.0.0.1",9559) laser.setDetectingLength(300,3000)





Copyright © 2010 Aldebaran-Robotics - All rights reserved