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.
No data field documented (see above for possible notes).
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.
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 sensor
stereounit = StereoUnit()
# place your component at the correct location
stereounit.translate(<x>, <y>, <z>)
stereounit.rotate(<rx>, <ry>, <rz>)
robot.append(%(var)s)
# 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.)