kipr / Simulator

Simulator of KIPR Demobots and code workspace.
GNU General Public License v3.0
12 stars 3 forks source link

[Semio] Light Sensor Support #460

Closed bmcdorman closed 1 year ago

bmcdorman commented 1 year ago

Details

Adds support for light sensors to the KIPR Simulator. Note that an arbitrary light sensor is currently placed on the Wombat. This will need to be updated before merge with the appropriate KIPR-defined location.

A LightSensor node may be attached to any analog port on the robot, just like other sensors. It is omnidirectional but occlusion aware via ray tracing. The light sensor is calibrated based on KIPR-provided calibration data. Noise is supported, but the sensor always behaves "realistically".

A new scene called lightSensorTest has been added that randomly flickers two lights every second.

Video

https://user-images.githubusercontent.com/96179/217894403-10edd34a-a9cc-4649-adda-4370364a9375.mov