This sensor returns the full pose of the sensor, i.e. both translation and rotation with respect to the Blender world frame.
No configurable parameter.
This sensor exports these datafields at each simulation step:
x coordinate of the sensor, in world coordinate, in meter
y coordinate of the sensor, in world coordinate, in meter
z coordinate of the sensor, in world coordinate, in meter
rotation around the Z axis of the sensor, in radian
rotation around the Y axis of the sensor, in radian
rotation around the X axis of the sensor, in radian
Interface support:
Returns the current data stored in the sensor.
Return value
a dictionary of the current sensor’s data
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
pose = Pose()
# place your component at the correct location
pose.translate(<x>, <y>, <z>)
pose.rotate(<rx>, <ry>, <rz>)
robot.append(pose)
# define one or several communication interface, like 'socket'
pose.add_interface(<interface>)
env = Environment('empty')
(This page has been auto-generated from MORSE module morse.sensors.pose.)