Light sensors in Isaac Sim?

Hello, I would like to use a light sensor in Isaac Sim. Does this currently exist? Or is there a way to use a camera to detect the amount of light?

Hi @olittlej - Currently, Isaac Sim does not have a dedicated light sensor component. To answer the camera part, I have forwarded question to the right dev.

Hi there,

you could use the camera data to calculate the luminance, where the luminosity formula is:
Y= 0.2126 × R + 0.7152 × G + 0.0722 × B

Here is a simple pseudo code script as an example:

total_lumincance = 0

for pixel in rgb_img:
    R, G, B = pixel
    luminance = 0.2126 * R + 0.7152 * G + 0.0722 * B
    total_luminance += luminance

average_luminance = total_luminance / num_pixels

You can also convert the RGB values to HSV (Hue, Saturation, Value) and then take the average Value (brightness) across the image.