Go2
Go2Real
Inherits from: Robot
Go2Real
name of the network interface, defaults to “wlo1”
whether to enable obstacle avoidance, defaults to False
whether to use low level control. If False, high level control is used. Defaults to False
getImage
Return the image of camera. Go2 only has one camera so the args are not used.
getLidarData
Get the current LiDAR point cloud data
Point cloud data containing 3D points
getHeightMap
Get the current height map data from LiDAR
getPosition
Get the current position of the unitree go2 agent with respect to the world coordinate.
getOrientation
return the current orientation of the unitree go2 agent in radians
current orientation of the unitree go2 agent in radians
setYaw
Set the yaw (in radians) of the unitree agent to the specified radians. Yaw measures the rotation of the drone around the z-axis (downwards)
moveByVelocity
Move the agent by velocity (velocity vector is respect to world coordinates) for the
specified duration
of seconds.
contains x velocity (x_vel), y velocity (y_vel), z_vel is discarded
contains yaw to turn by (z_vel), x_vel and y_vel are discarded
number of seconds that the Go2 should move before stopping
unused
getVelocity
Get the velocity of the unitree go2 agent
setJointPositions
Set the position of the robot’s joints.
setJointVelocities
Set the velocity of the robot’s joints.
setJointTorques
Set the torque of the robot’s joints.
getMotorState
Get the current state of all motors.
getIMU
Get the current IMU state.
getBatteryState
Get the current battery state.
getFootForce
Get the current foot force readings.
getLowLevelState
Get the complete low level state.
Was this page helpful?