1 / 10

Trajectory Generation

Trajectory Generation. Cherevatsky Boris. Trajectory for single joint. Suppose we are given a simple robot We want to move the joint from to in 4 seconds and the trajectory should be a cubic polynomial . . Trajectory for single joint.

nani
Télécharger la présentation

Trajectory Generation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Trajectory Generation Cherevatsky Boris

  2. Trajectory for single joint • Suppose we are given a simple robot • We want to move the joint from to in 4 seconds and the trajectory should be a cubic polynomial .

  3. Trajectory for single joint • Let’s denote the initial velocity and the final velocity . We also know that , so if then we get that : By solving this 4 equations we can extract the coefficients of the polynomial:

  4. Using Matlab • The function [s,sd,sdd]=tpoly(start,end,time,start_v,end_v) generates a quantic polynomial trajectory. • Example: • tpoly(0,1,50) ; this means start_v=end_v=0

  5. Problem with polynomials • Let’s try this example:tpoly(0,1,50,0.5,0) • What is the problem?

  6. Problem with polynomials #2 • Looking at the 1st exampletpoly(0,1,50) we see that the velocity peaks at t=25, which means that for the most of the time the velocity is far less than the maximum. The mean velocity:mean(sd)/max(sd) = 0.5231Only 52% of the peak.

  7. Solution – Linear with bend! • S = lspb(0,1,50,0.025)Linear segment with parabolic blend • Mean(sd)/max(sd)=0.80

  8. Multi-Dimensional Case • X=mtraj(@tpoly,[0 2] ,[1 -1], 50); • X=mtraj(@lspb,[0 2] ,[1 -1], 50);

  9. Multi-Dimensional with via points • via = [4,1;4,4;5,2;2,5] • mstraj(via,[2,1],[],[2,1],0.05,0); • The functions takes: • Via points • A vector of maximum speeds per joint • A vector of durations for each segment • Initial axis coordinates • Sample interval • Acceleration time

  10. Acceleration time • mstraj(via,[2,1],[],[2,1],0.05,1);

More Related