top of page
from fairino import Robot
# Establish a connection with the robot controller and return a robot object if the connection is successful
robot = Robot.RPC('192.168.58.2')
company = 24
device = 0
softversion = 0
bus = 1
index = 1
robot.FT_SetConfig(company, device, softversion, bus)
time.sleep(1)
error,[company, device, softversion, bus] = robot.FT_GetConfig()
print(f"FT config:{company},{device},{softversion},{bus}")
time.sleep(1)
robot.FT_Activate(0)
time.sleep(1)
robot.FT_Activate(1)
time.sleep(1)
robot.FT_SetZero(0)
time.sleep(1)
status = 1
sensor_num = 1
gain = [0.0001, 0.0, 0.0, 0.0, 0.0, 0.0]
adj_sign = 0
ILC_sign = 0
max_dis = 100.0
max_ang = 5.0
ft = [0.0,0.0,-10.0,0.0,0.0,0.0]
rcs = 0
dr = 0.7
fFinish = 1.0
t = 60000.0
vmax = 3.0
force_goal = 20.0
lin_v =