The Human
class represents a human avatar in RCareWorld. It is a derived class of RCareWorldBaseObject
and provides additional methods for manipulating the human avatar pose and joints.
def __init__(self, env, id:int, name:str, is_in_scene:bool = False)
env
: The environment object.id
: ID of the human avatar.name
: Name of the human avatar.is_in_scene
: Whether the human avatar is in the scene (default: False).setBasePosition(position:list)
Set the base position of the human character.
Args:
position
(list): The position to set as the base position.setRootRotation(rotation:list)
Set the root rotation of the human character.
Args:
rotation
(list): The rotation to set as the root rotation.setJointRotationByName(joint_name:str, position:list)