Skip to main content

G1

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.
Arguments
network_interface_name (str)
str
No description provided.
low_level_control (bool)
bool
No description provided.
hand
No description provided.
control_dt (float)
float
No description provided.

moveByVelocity

G1.moveByVelocity(linear_velocity: Velocity, angular_velocity: Velocity, frame: str = 'base')
No docstring provided.
Arguments
linear_velocity (Velocity)
Velocity
required
No description provided.
angular_velocity (Velocity)
Velocity
required
No description provided.
frame (str)
str
No description provided.

getJointAngles

G1.getJointAngles()
No docstring provided.

setJointAngles

G1.setJointAngles(angles: list)
No docstring provided.
Arguments
angles (list)
list
required
No description provided.

enableArms

G1.enableArms()
No docstring provided.

disableArms

G1.disableArms()
No docstring provided.

zeroArmState

G1.zeroArmState(smooth = False, duration = 3.0)
Move arm joints to zero position.
Arguments
smooth
If True, smoothly transition to zero position
duration
Duration of smooth transition in seconds (only used if smooth=True)

moveToDefaultLeftArmState

G1.moveToDefaultLeftArmState(repeat = False, smooth = None)
No docstring provided.
Arguments
repeat
No description provided.
smooth
No description provided.

getLeftArmIndices

G1.getLeftArmIndices()
No docstring provided.

getRightArmIndices

G1.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.
Arguments
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]
kd_scale
Scale factor for damping gains
smooth
If True, smoothly transition to target angles
duration
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.
Arguments
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]
kd_scale
Scale factor for damping gains
smooth
If True, smoothly transition to target angles
duration
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.
Arguments
angles (Union[list, np.ndarray, dict])
Union[list, np.ndarray, dict]
required
Target angles as list, numpy array, or dictionary
kd_scale
Scale factor for damping gains
smooth
If True, smoothly transition to target angles
duration
Duration of smooth transition in seconds (only used if smooth=True)

getPosition

G1.getPosition()
No docstring provided.

getOrientation

G1.getOrientation()
No docstring provided.

getState

G1.getState()
No docstring provided.

getLowState

G1.getLowState()
No docstring provided.

stop

G1.stop()
No docstring provided.