Angle acquisition

from pymycobot import ultraArm,utils

if __name__=="__main__":
arm=ultraArm(utils.get_port_list()[0])
angles=arm.get_angles_info()
print(angles)

Coordinate acquisition

from pymycobot import ultraArm,utils

if __name__=="__main__":
    arm=ultraArm(utils.get_port_list()[0])
    coords=arm.get_coords_info()
    print(coords)

Notes

After the robot arm is turned on, it must be zeroed once before obtaining the correct data. The following code can be used to return to zero

from pymycobot import ultraArm,utils

if __name__=="__main__":
    arm=ultraArm(utils.get_port_list()[0]) 
    arm.go_zero()

results matching ""

    No results matching ""