OpenServo.com Forum Index OpenServo.com
Discussion of the OpenServo project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

why choose the cubic spline Interpolation method to control

 
Post new topic   Reply to topic    OpenServo.com Forum Index -> Software
View previous topic :: View next topic  
Author Message
lba_821103



Joined: 18 Oct 2007
Posts: 10

PostPosted: Sat Nov 24, 2007 8:04 am    Post subject: why choose the cubic spline Interpolation method to control Reply with quote

why choose the cubic spline Interpolation method to creat plenty of the sub goal point?
Please see the process as follow:

v0 *= curve_duration_float;
v1 *= curve_duration_float;

// Set the curve parameters.
curve_p0 = p0;
curve_p1 = p1;
curve_v0 = v0;
curve_v1 = v1;

// Set the cubic coefficients by multiplying the matrix form of
// the Hermite curve by the curve parameters p0, p1, v0 and v1.
//
// | a | | 2 -2 1 1 | | p0 |
// | b | | -3 3 -2 -1 | | p1 |
/ | c | = | 0 0 1 0 | . | (t1 - t0) * v0 |
// | d | | 1 0 0 0 | | (t1 - t0) * v1 |
//
// a = 2p0 - 2p1 + v0 + v1
// b = -3p0 + 3p1 -2v0 - v1
// c = v0
// d = p0
//
curve_a = (2.0 * p0) - (2.0 * p1) + v0 + v1;
curve_b = -(3.0 * p0) + (3.0 * p1) - (2.0 * v0) - v1;
curve_c = v0;
curve_d = p0;
s = (curve_a * t3) + (curve_b * t2) + (curve_c * t1) + curve_d
v=(3.0 * curve_a * t2) + (2.0 * curve_b * t1) + curve_c
why we set the cubic coefficients by multiplying the matrix form of
the Hermite curve ?
Do it create the curve need four point ,but it only have two point?
what advantage we use the method to control our servo motor?
Back to top
View user's profile Send private message
linuxguy



Joined: 16 Oct 2006
Posts: 120
Location: Beaverton, OR

PostPosted: Sat Nov 24, 2007 11:48 am    Post subject: Re: why choose the cubic spline Interpolation method to cont Reply with quote

lba_821103 wrote:
why choose the cubic spline Interpolation method to creat plenty of the sub goal point?

Please do not post the same thing in more than one forum. We will find your post and reply if we can help you. There is no need to cross post here.

8-Dale
_________________
No, Mr. Jobs, the BiPod is a ROBOT. It does not play music OR interface with iTunes.
The Dynaplex Network - Robotics, Open Source, Linux, and Technology Forums
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
ginge
Site Admin


Joined: 14 Jan 2006
Posts: 1029
Location: Manchester, UK

PostPosted: Sun Nov 25, 2007 2:48 pm    Post subject: Reply with quote

Thanks Linuxguy,

lba_821103, please refer to my response here:

http://www.openservo.com/Forums/viewtopic.php?p=3465

B
_________________
http://www.headfuzz.co.uk/
http://www.robotfuzz.co.uk/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    OpenServo.com Forum Index -> Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group