I have two xarm7 and I want to control them through one computer, what is the best way to do that?
Hi,Please check your email.
Thanks.
Hi,
Do you want two robotic arms to work together?
Hi,
Yes, I want to use one computer to make the two Xarm7 works together.
Hi, you can use the Python-SDK to control the motion of the two xArms.
example:
import os
import sys
import time
sys.path.append(os.path.join(os.path.dirname(file), ‘…/…/…’))
from xarm.wrapper import XArmAPI
arm1 = XArmAPI(‘192.168.1.135’)
arm2 = XArmAPI(‘192.168.1.229’)
arm1.motion_enable(enable=True)
arm1.set_mode(0)
arm1.set_state(state=0)
arm2.motion_enable(enable=True)
arm2.set_mode(0)
arm2.set_state(state=0)
arm1.reset(wait=True)
arm2.reset(wait=True)
speed1 = 200
mvacc1=5000
arm1.set_position(x=400, y=-100, z=250, roll=180, pitch=0, yaw=0, radius=50, speed=speed1, mvacc=mvacc1, wait=False)
print(arm1.get_position(), arm1.get_position(is_radian=True))
arm1.set_position(x=400, y=100, z=250, roll=180, pitch=0, yaw=0, radius=50, speed=speed1, mvacc=mvacc1, wait=False)
print(arm1.get_position(), arm1.get_position(is_radian=True))
arm2.set_position(x=300, y=0, z=250, roll=-180, pitch=0, yaw=0, radius=50, speed=speed1, mvacc=mvacc1, wait=False)
print(arm2.get_position(), arm2.get_position(is_radian=True))