Skip to content
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

How to load local trajectories #125

Open
yueminm opened this issue Nov 20, 2024 · 1 comment
Open

How to load local trajectories #125

yueminm opened this issue Nov 20, 2024 · 1 comment

Comments

@yueminm
Copy link

yueminm commented Nov 20, 2024

Hi,

I'm doing some trajectory optimization, which can generate trajectories in the exactly same format as the .traj files generated by recording trajectories. However, when I try to load the generated trajectories with the load_traj() function, it says "load failed". And if I download the recorded trajectories and load it, it also fails, so seems like the load_traj() function just can't take local path as input. I'm wondering if there's any easy ways I can load a trajectory and send it at 250Hz.

Thanks.

@MinnaZhong
Copy link

Hi Yueminm,

load_traj reads the trajectory from the controller, the trajectory file must be uploaded to the controller via UfactoryStudio.
If you modify the traj file, we cannot guarantee it can be played normally, please use set_servo_angle_j to read the traj file yourself.
https://github.com/xArm-Developer/xArm-Python-SDK/blob/master/example/wrapper/common/7001-servo_j.py

A real-time system is a must to use set_servo_angle_j , please use Linux with PREEMPT_RT patched kernel.

Best regards
Minna

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants