Documentation Index
Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
Use this file to discover all available pages before exploring further.
Inherits from: Humanoid
G1 humanoid robot.
Inherited methods
- From
Humanoid: setDefaultJointAngles, setDefaultJointVelocities
- From
Robot: addSensor, getImage, cleanup
init
G1.__init__(network_interface_name: str = 'enp118s0', low_level_control: bool = False, hand = None, control_dt: float = 0.02)
No docstring provided.
network_interface_name (str)
No description provided.
moveByVelocity
G1.moveByVelocity(linear_velocity: Velocity, angular_velocity: Velocity, frame: str = 'base')
No docstring provided.
linear_velocity (Velocity)
No description provided.
angular_velocity (Velocity)
No description provided.
getJointAngles
No docstring provided.
setJointAngles
G1.setJointAngles(angles: list)
No docstring provided.
enableArms
No docstring provided.
disableArms
No docstring provided.
zeroArmState
G1.zeroArmState(smooth = False, duration = 3.0)
Move arm joints to zero position.
If True, smoothly transition to zero position
Duration of smooth transition in seconds (only used if smooth=True)
moveToDefaultLeftArmState
G1.moveToDefaultLeftArmState(repeat = False, smooth = None)
No docstring provided.
getLeftArmIndices
No docstring provided.
getRightArmIndices
No docstring provided.
setLeftArmAngles
G1.setLeftArmAngles(angles: Union[list, np.ndarray], kd_scale = 1.0, smooth = False, duration = 2.0)
Set left arm joint angles.
angles (Union[list, np.ndarray])
Union[list, np.ndarray]
required
7 target angles for left arm joints [shoulder_pitch, shoulder_roll, shoulder_yaw, elbow, wrist_roll, wrist_pitch, wrist_yaw]
Scale factor for damping gains
If True, smoothly transition to target angles
Duration of smooth transition in seconds (only used if smooth=True)
setRightArmAngles
G1.setRightArmAngles(angles: Union[list, np.ndarray], kd_scale = 1.0, smooth = False, duration = 2.0)
Set right arm joint angles.
angles (Union[list, np.ndarray])
Union[list, np.ndarray]
required
7 target angles for right arm joints [shoulder_pitch, shoulder_roll, shoulder_yaw, elbow, wrist_roll, wrist_pitch, wrist_yaw]
Scale factor for damping gains
If True, smoothly transition to target angles
Duration of smooth transition in seconds (only used if smooth=True)
setArmAngles
G1.setArmAngles(angles: Union[list, np.ndarray, dict], kd_scale = 1.0, smooth = False, duration = 2.0)
Set arm joint angles.
angles (Union[list, np.ndarray, dict])
Union[list, np.ndarray, dict]
required
Target angles as list, numpy array, or dictionary
Scale factor for damping gains
If True, smoothly transition to target angles
Duration of smooth transition in seconds (only used if smooth=True)
getPosition
No docstring provided.
getOrientation
No docstring provided.
getState
No docstring provided.
getLowState
No docstring provided.
stop
No docstring provided.