get_raw_data()
  • 1 Minute to read

get_raw_data()


Article summary

get_raw_data()

Get detection information from robot's LiDAR.

Reference

Arguments

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

Return

List with lenght len = 1 + round((angle_max-angle_min)/angle_increment).

PositionValue
0Distance at angle_min
1Distance at angle_min + angle_increment
2Distance at angle_min + 2*angle_increment
......
len-1Distance at angle_max

| angle_min | Minimum detection angle. |
| angle_max | Maximum detection angle. |

Exceptions

See the complete list of lidar exceptions.

Usage Example

...
self.lidar = self.enable_controller('lidar')
...
raw_data = self.lidar.get_raw_data()
print(f'Lenght of raw_data: {len(raw_data)}')
print('Raw Data')
print(raw_data)
...

Was this article helpful?

What's Next