|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object simbad.sim.BaseObject simbad.sim.Device simbad.sim.SensorDevice simbad.sim.Eye simbad.sim.LightSensor
This class models a single light sensor. The sensor outputs a float proportionnal to received light.
Implementation Note:
We use a small camera to implement the light sensor. The camera must look back at the sensor body
so as to measured the light received.
Nested Class Summary | |
class |
LightSensor.LigthSensorJPanel
|
Nested classes inherited from class simbad.sim.Eye |
Eye.EyeJPanel |
Constructor Summary | |
LightSensor()
|
Method Summary | |
javax.swing.JPanel |
createInspectorPanel()
Creates the panel associated to the device. |
float |
getAverageLuminance()
Returns the measured luminance. |
Methods inherited from class simbad.sim.Eye |
copyVisionImage, copyVisionImage, createCompatibleImage, createCompatibleSensorMatrix, getImageHeight, getImageWidth |
Methods inherited from class simbad.sim.Device |
attach, detach, getCanBeTraversed, getName, getRotationTransform, getTranslationTransform, getUpdatePerSecond, rotateY, setCanBeTraversed, setColor, setUpdateOnEachFrame, setUpdatePerSecond, translateTo |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LightSensor()
Method Detail |
public float getAverageLuminance()
public javax.swing.JPanel createInspectorPanel()
Device
createInspectorPanel
in class Eye
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |