Controller for the motion of the human avatar, using the ASUS Xtion
Read the positions of the different joints at: head, neck, shoulders, torso, elbows, hands, hips, knees and feet And apply those positions to the control points (Empty’s) of the armature
No configurable parameter.
This actuator reads these datafields at each simulation step:
Head position
Neck position
Left Hand position
Right Hand position
Left elbow position
Right elbow position
Left shoulder position
Right shoulder position
Left hip position
Right hip position
Left foot position
Right foot position
torso position
left knee position
right knee position
Interface support:
Returns the properties of a component.
Return value
a dictionary of the current component’s properties
Modify one property on a component
Parameters
Return value
nothing
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 actuator
mocapcontrol = MocapControl()
# place your component at the correct location
mocapcontrol.translate(<x>, <y>, <z>)
mocapcontrol.rotate(<rx>, <ry>, <rz>)
robot.append(mocapcontrol)
# define one or several communication interface, like 'socket'
mocapcontrol.add_interface(<interface>)
env = Environment('empty')
(This page has been auto-generated from MORSE module morse.actuators.mocap_control.)