Go to Post Someone once said, "I know what finished is, and I know what a robot is, but what is this finished robot you speak of?" - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Old 01-01-2017, 11:09 AM
Turing'sEgo Turing'sEgo is offline
Registered User
no team
 
Join Date: Jan 2016
Rookie Year: 2010
Location: Boulder
Posts: 47
Turing'sEgo can only hope to improve
Theoretical Motion Profiling

What is the theoretical best time and space complexity of the respective motion profiling techniques?

I'm curious if anyone has worked it out after seeing Jaci's recent post on the matter.
Reply With Quote
  #2   Spotlight this post!  
Old 01-01-2017, 04:27 PM
Alon Alon is offline
Registered User
FRC #3075
 
Join Date: Mar 2016
Location: israel
Posts: 9
Alon is an unknown quantity at this point
Re: Theoretical Motion Profiling

You can generate 1 dimensional profiles in O(1).
For example sinusoidal motion profiling does not need any iterations what so ever; the position, the velocity and the acceleration can be all described with trigonometric functions.

We tried those on our drive system and it worked pretty well, but there might be other methods as well.

For further reading: https://www.chiefdelphi.com/media/papers/3107

credit to Ether of course
Reply With Quote
  #3   Spotlight this post!  
Old 01-01-2017, 05:47 PM
Jared Russell's Avatar
Jared Russell Jared Russell is online now
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,062
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Theoretical Motion Profiling

You can obtain the equations and switching times necessary to compute any arbitrary trajectory point in constant time (per degree of freedom). (EDIT: Assuming your constraints (min/max velocity and acceleration) are constant throughout the entire trajectory.)

What Jaci accelerated was the arc-length parameterization of splines, which is a necessary first step to obtain a uniformly-spaced trajectory that can then be time-parameterized with a motion profile. Parameterizing a spline by arc length involves evaluating an integral that generally cannot be evaluated analytically, so there is a tradeoff between accuracy and speed that must be made in coming up with a numerical solution.

Difficult integrals arise all the time in real-world engineering, and depending on the context one may use any of a number of techniques to evaluate them. Riemann sums (what Jaci was using) are a simple technique, though it may require very fine sampling to work well. Other techniques include Euler Method or higher-order Runge-Kutta methods.

Last edited by Jared Russell : 01-01-2017 at 05:53 PM.
Reply With Quote
  #4   Spotlight this post!  
Old 01-01-2017, 05:56 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,986
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Theoretical Motion Profiling

Quote:
Originally Posted by Jared Russell View Post
Other techniques include Euler Method or higher-order Runge-Kutta methods.
For students who may be interested: There's a recent thread here which has a discussion and some simple examples of solving Initial Value Problems using Euler vs Midpoint (Midpoint is a 2nd-order Runge-Kutta method which is easily implemented in a spreadsheet).



Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:02 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi