A simple point light
This actuator is a simple On/Off light. Based on SPOT light.
You can set these properties in your scripts with <component>.properties(<property1>=..., <property2>=...).
Set to False to initially disable the light
Distance at which the light energy is halfed
Light color
Light spot size
Light energy when On
This actuator reads these datafields at each simulation step:
On/Off light switch
Interface support:
Returns the configurations of a component (parsed from the properties).
Return value
a dictionary of the current component’s configurations
Returns the properties of a component.
Return value
a dictionary of the current component’s properties
Toggle the light.
Parameters
Return value
Returns always True
The following examples show how to use this component in a Builder script:
from morse.builder import *
robot = ATRV()
# creates a new instance of the actuator
light = Light()
# place your component at the correct location
light.translate(<x>, <y>, <z>)
light.rotate(<rx>, <ry>, <rz>)
robot.append(light)
# define one or several communication interface, like 'socket'
light.add_interface(<interface>)
env = Environment('empty')
(This page has been auto-generated from MORSE module morse.actuators.light.)