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 

a quick question abouth the Curve method

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



Joined: 08 Mar 2007
Posts: 41

PostPosted: Thu May 24, 2007 4:33 am    Post subject: a quick question abouth the Curve method Reply with quote

"Curve in velocity" and "Curve out velocity" reg are always the same?

for a hermite curve, p0 is the current position. how to define v0?
Back to top
View user's profile Send private message
ginge
Site Admin


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

PostPosted: Thu May 24, 2007 12:56 pm    Post subject: Reply with quote

Hi Eric,

I started to document the curve features on the wiki here.

http://openservo.com/MotionProfile

It is not finished yet, and probably does not cover everything, but it is getting there.

The in and out values are the same because you presumable want the servo to move in a nice curve motion from one point to another. The OpenServo is based on keypoints are not the entire curve. The Tangent in values and the tangent out values are for the keypoint, and not the beginning and end of the curve. Each curve is comprised of two keypoints, making up one keyframe. Doing it this way gives us much more flexibility when it comes to creating differing motion profile shapes.

v0 will be the same as v1, which is the velocity of the servo movement. This is also defined as the tangent. v0 is the tangent in, and v1 is the tangent out.


http://www.cubic.org/docs/hermite.htm gives a good overview of how hermites work. In this example, the v0 and v1 values are defined by (T1x-P1x)/(P1y/T1y)

The wiki entry covers the tangent creation and conversion to OpenServo values.

I hope this all makes sense to you... It took me a while to get to grips with it.

Barry
_________________
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
eric_lmi



Joined: 08 Mar 2007
Posts: 41

PostPosted: Thu May 24, 2007 5:14 pm    Post subject: re Reply with quote

thanks Barry
very useful information.
Back to top
View user's profile Send private message
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