The purpose of this component is to link together one or more cameras, and provide them with the possibility to move together as a single unit. It will also provide the connection interface to use the information of the cameras attached to it. In the case of two cameras, it will provide the stereo information generated from the two camera images.
No configurable parameter.
This sensor exports these datafields at each simulation step:
number of milliseconds in simulated time
Interface support:
Returns the current data stored in the sensor.
Return value
a dictionary of the current sensor’s data
The service takes an integer an argument and dispatch the call to all its individual cameras. The service ends when each camera has terminated its work.
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
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 sensor
stereounit = StereoUnit()
# place your component at the correct location
stereounit.translate(<x>, <y>, <z>)
stereounit.rotate(<rx>, <ry>, <rz>)
robot.append(stereounit)
# define one or several communication interface, like 'socket'
stereounit.add_interface(<interface>)
env = Environment('empty')
(This page has been auto-generated from MORSE module morse.sensors.stereo_unit.)