Go to Post Battle Bots and other robot fighting competitions is to First Like McDonalds to Hamburgers They get the idea, and have the taste, but they are bad for you in the long run. - Conor Ryan [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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!  
Unread 16-07-2014, 19:13
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-07-2014, 19:22
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Autonomous Path Maker

I can't view that video; it's set to private.
__________________
Head Programmer / Driver
Reply With Quote
  #3   Spotlight this post!  
Unread 16-07-2014, 19:28
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Autonomous Path Maker

Quote:
Originally Posted by cjl2625 View Post
I can't view that video; it's set to private.
Try now.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-07-2014, 19:41
thatprogrammer's Avatar
thatprogrammer thatprogrammer is offline
Registered User
AKA: Ahad Bawany
no team (None)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Florida
Posts: 609
thatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond repute
Re: Autonomous Path Maker

I hope to one day reach a level of programming in which I could do stuff like this! *C++ port? )
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 13:54.

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