How to track a pre computed trajectory using speedj command?

Hi All,

I am curious to know that how can we track a pre-computed trajectory using a “speedj” URScript command. Can anyone please help me with this?

And what is the advantage of “speedj” over “movej” to if we want to track some trajectory?

Thanks

Hi @mpadhiya

movej is targeted movements from actual set of joint angles to a target set of joint angles , if there is no need for the robot to stop at the target you can at a blend. In this case the function will return when the robot enters the sphere around the target pose(forward kinematic of the set of joint angles).
speedj can be used to control the angular speed of each joint. The function will return either when the target speed is reached or after the specified time.
If you are targeting to follow your own trajectory you can also take a look at speedl that is similar to speedj but acting in the cartesian space. Or servoj that is built for chasing a target set of joint angles, but have the option to return after a shorter amount of time. So you have the option to update the target.

No matter the script function you are using for following the trajectory, Your task is to segment the trajectory in to small piece and parse it to the script function. For the e-series the minimal timestep is 2ms and the CB series is 8ms. So that is the smallest time slices you can create.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.