BipedPlus API (Beta)
/
API Reference
/
Rig
mirror()
Download MarkdownCopies this rig's pose to the other side. To swap left and right, use flip.
ValueError if INFO is missing or has no nodes. RuntimeError if the apply fails.
Signature
rig.mirror(direction) -> dict
| direction | Meaning |
|---|---|
"L2R" |
Left onto right |
"R2L" |
Right onto left |
Any other string raises ValueError.
Return
A success dict. A success: False result is raised as RuntimeError instead of being returned.
Example
from os_bipedPlus import openAPI
api = openAPI()
rig = api.scan()
rig.mirror("L2R")