Light

A simple point light

This actuator is a simple On/Off light. Based on SPOT light.

Properties

  • Emit in +X
  • Spot size = 90°
  • Distance = 10m
  • Energy: On = 1.0; Off = 0.0

Configuration parameters for light

No configurable parameter.

Data fields

This actuator reads these datafields at each simulation step:

  • emit (bool, initial value: True)

    On/Off light switch

Interface support:

Services for Light

This component does not expose any service.

Examples

The following example shows 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')

Other sources of examples

(This page has been auto-generated from MORSE module morse.actuators.light.)

Table Of Contents

Previous topic

Keyboard Actuator

Next topic

Mocap controller

This Page