This sensor collects the positions of the bones in the human armature for the file $MORSE_ROOT/data/robots/mocap_human.blend.
It stores the position and orientation of the general armature object, as well as the local rotation of each individual bone. The rotation angles are given in radians. It exports the same interface than the human posture sensor, but some joints are not reflected by the Kinect, and so they stay to their initial values.
This sensor will only work for the mocap_human.blend model, as it uses a specific naming convention for each of the bones.
You can also check to general documentation of the human component.
No configurable parameter.
This sensor exports these datafields at each simulation step:
number of seconds in simulated time
global X position of the armature in the scene, in meter
global Y position of the armature in the scene, in meter
global Z position of the armature in the scene, in meter
rotation angle with respect to the Z axis, in radian
rotation angle with respect to the Z axis, in radian
rotation angle with respect to the Z axis, in radian
(no documentation available yet)
(no documentation available yet)
(no documentation available yet)
(no documentation available yet)
(no documentation available yet)
(no documentation available yet)
rotation around the X axis for the torso, in radian
rotation around the Y axis for the torso, in radian
rotation around the Z axis for the torso, in radian
rotation around the Z axis for the head, in radian
rotation around the Y axis for the head, in radian
rotation around the X axis for the head, in radian
rotation around the X axis for the right shoulder, in radian
rotation around the Y axis for the right shoulder, in radian
rotation around the Z axis for the right shoulder, in radian
elongation of the right arm, in meter (not computed)
rotation around the Z axis for the right elbow, in radian
R_POINT (not computed)
rotation around the X axis for the right wrist, in radian (not computed)
rotation around the Y axis for the right wrist, in radian (not computed)
rotation around the Z axis for the right write, in radian (not computed
rotation around the X axis for the left shoulder, in radian
rotation around the Y axis for the left shoulder, in radian
rotation around the Z axis for the left shoulder, in radian
elongation of the left arm, in meter (not computed)
rotation around the Z axis for the left elbow, in radian
L_POINT (not computed)
rotation around the X axis for the left wrist, in radian (not computed)
rotation around the Y axis for the left wrist, in radian (not computed)
rotation around the Z axis for the left wrist, in radian (not computed)
rotation around the X axis for the right hip, in radian
rotation around the Y axis for the right hip, in radian
rotation around the Z axis for the right hip, in radian
rotation around the Z axis for the right knee, in radian
rotation around the X axis for the right ankle, in radian (not computed)
rotation around the Y axis for the right ankle, in radian (not computed)
rotation around the Z axis for the right ankle, in radian (not compued)
rotation around the X axis for the left hip, in radian
rotation around the Y axis for the left hip, in radian
rotation around the Z axis for the left hip, in radian
rotation around the Z axis for the left knee, in radian
rotation around the X axis for the left ankle, in radian (not computed)
rotation around the Y axis for the left ankle, in radian (not computed)
rotation around the Z axis for the left ankle, in radian (not computed)
Interface support:
(attention, no interface support!)
Modify one property on a component
Parameters
Return value
nothing
Returns the properties of a component.
Return value
a dictionary of the current component’s properties
Returns the current data stored in the sensor.
Return value
a dictionary of the current sensor’s data
Returns the configurations of a component (parsed from the properties).
Return value
a dictionary of the current component’s configurations
The following examples show how to use this component in a Builder script:
from morse.builder import *
# adds a default robot (the MORSE mascott!)
robot = Morsy()
# creates a new instance of the sensor
humanposture = HumanPosture()
# place your component at the correct location
humanposture.translate(<x>, <y>, <z>)
humanposture.rotate(<rx>, <ry>, <rz>)
robot.append(humanposture)
# define one or several communication interface, like 'socket'
humanposture.add_interface(<interface>)
env = Environment('empty')
(This page has been auto-generated from MORSE module morse.sensors.mocap_posture.)