-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SDK][ERROR][base.py:374] - - API -> set_servo_angle -> code=1 #103
Comments
Hi, do you use xArm6 or Lite6? Is there any error when running the 2006 example? Best, |
Hi Minna, Thanks for your response! I use the Lite6. I didn´t have any errors when running the 2006 example uncustomized (with constant speed for all commands). The firmware version is 2.2.2. The studio version is also 2.2.2. Please find my code below. In order to reproduce the error one needs a UDP sender script that sends every 1 second the new axis commands and new targetspeed. As my UDP sender sends the message every 1 second I skipped the time.sleep(1) after arm.set_servo_angle(..). I coded the UDP sender in another program, so I unfortunately can´t share it here right away. #!/usr/bin/env python3 Software License Agreement (BSD License)Copyright (c) 2019, UFACTORY, Inc.All rights reserved.Author: Vinman [email protected] [email protected]""" import os sys.path.append(os.path.join(os.path.dirname(file), '../../..')) from xarm.wrapper import XArmAPI ####################################################### UDP_IP = "127.0.0.1" print("UDP target IP: %s" % UDP_IP) sock = socket.socket(socket.AF_INET, # Internet sock2 = socket.socket(socket.AF_INET, # Internet ####################################################### arm = XArmAPI('192.168.1.172') arm.set_reduced_max_joint_speed(45,is_radian=False) set mode: joint online trajectory planning modethe running command will be interrupted when the next command is receivedarm.set_mode(6) #speed = 45 #for i in range(10):
set_mode: position modearm.set_mode(0) |
Hi, When set_servo_angle returns 1, please open our UFactoryStudio software to see if there is any error, what is the error code? You can call get_err_warn_code to get the error code as well. Best regards, |
Hi, I can´t re-test this setup of switching velocity right now as I meanwhile employed another one, but might get back in a few weeks with an update on its error codes |
Hello there,
does anybody have an idea what this error could be about?
I am using an xArm 6 Lite and adapted the 2006-joint_online_trajectory_planning.py example so I can change the speed in every new angle command:
arm.set_servo_angle(angle=angles, speed=targetspeed, wait=False)
Since then, from time to time, this error occurs:
[SDK][ERROR][2024-02-29 09:26:17][base.py:374] - - API -> set_servo_angle -> code=1, angles=[0.8726646259971648, -0.33335788713091696, 3.3772121026090276, -0.4625122517784973, 0.44331363000655966, -1.1030480872604163, 0.0], velo=0.7853981633974483, acc=8.726646259971648, radius=None
Is the speed not meant to be changed while planning the trajectory?
Is there another way to change the speed on the go?
The text was updated successfully, but these errors were encountered: