|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimbad.sim.BaseObject
simbad.sim.Device
simbad.sim.SensorDevice
simbad.sim.Eye
simbad.sim.LightSensor
public class 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/interfaces inherited from class simbad.sim.Eye |
---|
Eye.EyeJPanel |
Field Summary | |
---|---|
(package private) float |
luminance
|
Fields inherited from class simbad.sim.Eye |
---|
imageHeight, imageWidth, tempRGBABuffer, visionImage |
Fields inherited from class simbad.sim.BaseObject |
---|
black, branchGroup, canBeTraversed, compilable, detachedFromSceneGraph, group, localBounds, material, rotation, rotationGroup, translation, translationGroup, white, world |
Constructor Summary | |
---|---|
LightSensor()
|
Method Summary | |
---|---|
(package private) void |
create3D(float radius)
|
javax.swing.JPanel |
createInspectorPanel()
Creates the panel associated to the device. |
float |
getAverageLuminance()
Returns the measured luminance. |
protected void |
update()
Called by simulator |
Methods inherited from class simbad.sim.Eye |
---|
copyVisionImage, copyVisionImage, createCompatibleImage, createCompatibleSensorMatrix, createViewPlatform, getImageHeight, getImageWidth |
Methods inherited from class simbad.sim.Device |
---|
getName, getOwner, getUpdatePerSecond, reset, setName, setOwner, setUpdateOnEachFrame, setUpdatePerSecond, update |
Methods inherited from class simbad.sim.BaseObject |
---|
addChild, addChild, attach, compile, create3D, detach, getBounds, getCanBeTraversed, getGroup, getNode, getRotationTransform, getRotationTransformGroup, getTranslation, getTranslationTransform, getTranslationTransform, resetTransforms, rotateY, setBounds, setCanBeTraversed, setColor, setWorld, translateTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
float luminance
Constructor Detail |
---|
public LightSensor()
Method Detail |
---|
public float getAverageLuminance()
void create3D(float radius)
create3D
in class Eye
protected void update()
update
in class Eye
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 |