Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Autonomous Path Maker (http://www.chiefdelphi.com/forums/showthread.php?t=130078)

Jared 16-07-2014 19:13

Autonomous Path Maker
 
Here's my attempt at autonomous path generating software. It's similar to 254's, but uses parametric splines, splines with unspecified headings at waypoints, and acceleration limits through turns.

It uses the robot's starting and ending position and heading at two points and a series of up to 6 waypoints to generate a piecewise parametric 2nd derivative continuous function that goes through the points and has the starting and ending angles. It also outputs a text file with each wheel's distance travelled, x position, y position, velocity, acceleration, first, and second derivative (y with respect to x) at 0.01 second intervals, which can be previewed in real time. The acceleration and velocity can have limits, and the velocity at the start and end must be zero. It also smoothly decreases velocity through turns.

Here's a video of the spline editor: https://www.youtube.com/watch?v=pdqi...bfBMtpDr0IXytg

Check out the project on GitHub: https://github.com/dicarlo236/PathIn...athinterpolate

A better description of how it works is on the wiki page on GitHub.
The interesting classes are Spline, Robot, Path, and SplineEditor.

A robot controller is included, but it's not tested.

cjl2625 16-07-2014 19:22

Re: Autonomous Path Maker
 
I can't view that video; it's set to private.

Jared 16-07-2014 19:28

Re: Autonomous Path Maker
 
Quote:

Originally Posted by cjl2625 (Post 1393424)
I can't view that video; it's set to private.

Try now.

thatprogrammer 16-07-2014 19:41

Re: Autonomous Path Maker
 
I hope to one day reach a level of programming in which I could do stuff like this! *C++ port? :P):eek:


All times are GMT -5. The time now is 06:39.

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