View Single Post
  #7   Spotlight this post!  
Unread 30-03-2012, 02:08
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,040
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: Curve Driving Generator

Quote:
Originally Posted by Ether View Post
Once you know the equation of the cubic connecting the starting point and the destination, you can compute the radius of curvature (and thus the required rate of rotation) at any point along the curve.
Attached is an example for starting point = (0,0) with a slope of 1/6
and a finish point = (3,9) with a slope of 2.

The blue line is the path and the red line is the reciprocal of the radius at each point along the curve.

If you download and install Maxima, you can play with the endpoints and see the curve that results.

Quote:
Originally Posted by ewhitman View Post
you need a 4th order polynomial (y= ax^3+bx^2+cx+d)
For the record, that's a third-order polynomial (cubic).

Quote:
you can't get a semi-circle
semi-circle would be a turn of pi. The OP limited the turn to pi/2.

Quote:
polynomials can give you weird behavior in some situations... The math is more complex, but I would recommend looking into splines as a more versatile tool for path planning.
If your starting and ending points are such that a single cubic results in a less-than-desirable curve, you can use intermediate waypoints to get to your destination (i.e. cubic splines). I suspect that in this application for many (most?) cases a single cubic will be satisfactory.
Attached Thumbnails
Click image for larger version

Name:	graph.png
Views:	170
Size:	14.1 KB
ID:	12469  
Attached Files
File Type: pdf cubic.pdf (14.5 KB, 41 views)

Last edited by Ether : 30-03-2012 at 02:25.