Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L515 laser intensity setting #3

Open
1 task done
vstadnytskyi-FDA opened this issue May 13, 2022 · 1 comment
Open
1 task done

L515 laser intensity setting #3

vstadnytskyi-FDA opened this issue May 13, 2022 · 1 comment

Comments

@vstadnytskyi-FDA
Copy link
Collaborator

vstadnytskyi-FDA commented May 13, 2022

  • Figure out how to change the laser intensity on L515 LIDAR.
@vstadnytskyi-FDA
Copy link
Collaborator Author

Example on how to get laser power, set laser power and get range of available laser power values. @AbdelRahmanNasser20,
please add

  • get laser power
  • set laser power
  • get laser power range

functions to the Driver Level Code. see example below. I think the example below works for any frames as long as depth or infrared stream is enabled.

dev = profile.get_device()
depth_sensor = dev.query_sensors()[0]
laser_pwr = depth_sensor.get_option(rs.option.laser_power)
print(f'laser power {laser_pwr}')

depth_sensor.set_option(rs.option.laser_power, 2)
laser_pwr = depth_sensor.get_option(rs.option.laser_power)
print("laser power = ", laser_pwr)

laser_range = depth_sensor.get_option_range(rs.option.laser_power)
print("laser power range = " , laser_range.min , "~", laser_range.max)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant