get_laser_info()
  • 1 Minute to read

get_laser_info()


Article summary

Get the following LiDAR technical information:

  • Minimum detection angle.
  • Maximum detection angle.
  • Angle increment between measurements.

Reference

Arguments

ArgumentTypeDefault value
ang_unitANGLE_UNITDEGREESENUM to select the unit of the angle: (DEGREES) degrees or (RADIANS) radians.

Return

Dictionary dict with the following keys:

KeyValue
angle_incrementAngle increment between measurements.
angle_minMinimum detection angle.
angle_maxMaximum detection angle.

Exceptions

  • RayaLidarInvalidAngleUnit

See the complete list of lidar exceptions.

Usage Example

Code:

...
class RayaApplication(RayaApplicationBase):

    async def setup(self):
        self.lidar = self.enable_controller('lidar')
        ...

    async def loop(self):
      ...
      lidar_info = self.lidar.get_laser_info()
      self.log.info(lidar_info)
      ...
            
    async def finish(self):
       ...

Output

{ 'angle_min':-90.0, 'angle_max':90.0, 'angle_increment':1.0 }


See the Lidar_scan example to check some valid uses.


Was this article helpful?