AndroidAgent¶
Description¶
An android agent that can be controlled via torques supplied to its joints.
See AndroidAgent
for more details.
Control Schemes¶
- Android Direct Torques (
0
) A 94 dimensional vector of continuous values representing torques to be applied at each joint. See Android Joints below for a description of the joint indicies.
- Android Max Scaled Torques (
1
) A 94 dimensional vector of continuous values between [-1, 1] representing the scaled torques to be applied at each joint. See Android Joints below for a description of the joint indicies.
1 represents the maximum forward torque and -1 the maximum torque in the opposite direction.
Android Joints¶
The control scheme for the android and the
JointRotationSensor
use a 94 length vector refer to
48 joints.
To gain insight into these joints, refer to the table below, or use the
joint_ind()
helper method to convert a name
(eg spine_02
) to and index (6
).
Note
Note that the index given is the start index for the joint, see the section header for how many values after this index each joint has.
Example: neck_01
starts at index 3, and has [swing1, swing2, twist]
, so index 3 in the 94 length vector corresponds to swing1
, 4
corresponds to swing2
, and 5 corresponds to twist
for neck_01
.
Returned in the following order:
Head, Spine, and Arm joints Each has |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Leg Joints Each has |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
First joint of each finger Has only |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Second joint of each finger Has only |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Third joint of each finger Has only |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AndroidAgent Bones¶
The RelativeSkeletalPositionSensor
returns an array
with four entries for each bone listed below.
Index |
Bone Name |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sockets¶
CameraSocket
located in the middle of the android’s faceViewport
located behind the agentAll of the joints may be used as sockets. See Android Joints.