Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added command that teleports agent-arm to desired position, rotation, armHeight, and elbowOrientation.
Both IK-Arm and Stretch-Arm are supported.
Input format for IK Arm (example values are defaults when no input is given beyond "action": "TeleportArm"):
{
"action": "TeleportArm",
"position": {"x": 0.0, "y": 0.0, "z": 0.4},
// rotation input is axis-angle notation, with "w" as wrist-angle (in degrees) around axis defined by (x, y, z)
"rotation": {"x": 0.0, "y": 0.0, "z": 0.0, "w": 0.0},
"armHeight": {-0.003},
// elbowOrientation input is orientation of elbow (in degrees) around straight line between agent's shoulder and wrist
"elbowOrientation": {0},
"worldRelative": false,
"forceAction": false
}
Input for FK Arm (example values are defaults when no input is given beyond "action": "TeleportArm"):
{
"action": "TeleportArm",
"position": {"x": 0.0, "y": 0.0, "z": 0.1},
// rotation input is single angle (in degrees) of wrist around up-axis, since that is the Stretch-Robot's wrist's only axis of rotational freedom
"rotation": {-180},
"worldRelative": false,
"forceAction": false
}