Go to Post Are people allowed to go to the roboprom, or just our robots? - AmoryG [more]
Home
Go Back   Chief Delphi > Competition > Championship Event
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #31   Spotlight this post!  
Unread 05-05-2015, 09:34
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,088
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: Motion Planning and Control for FRC - FIRST Championship Conference Session

Quote:
Originally Posted by mman1506 View Post
Just you
Quote:
Originally Posted by Asymons View Post
Both links work for me perfectly.
I can view the presentation on-line. Is that what you both are referring to?

I am saying that the PDF and PPTX download options in this popup menu do not work for me:

http://i.imgur.com/jWPsNVP.png


Jared, is that intentional or an oversight?

~

Last edited by Ether : 05-05-2015 at 09:59.
  #32   Spotlight this post!  
Unread 05-05-2015, 14:28
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Motion Planning and Control for FRC - FIRST Championship Conference Session

Not intentional. The PDF and PPT links work for me.

I've attached the PDF.
Attached Files
File Type: pdf Motion Planning and Control for FRC.pdf (3.61 MB, 455 views)
  #33   Spotlight this post!  
Unread 05-05-2015, 15:43
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,088
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: Motion Planning and Control for FRC - FIRST Championship Conference Session

Quote:
Originally Posted by Jared Russell View Post
I've attached the PDF.
Thank you.

~
  #34   Spotlight this post!  
Unread 07-05-2015, 12:48
chsahit's Avatar
chsahit chsahit is offline
Lead Developer
AKA: Sahit C
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Jul 2014
Rookie Year: 2013
Location: Mount Olive
Posts: 7
chsahit will become famous soon enoughchsahit will become famous soon enough
Re: Motion Planning and Control for FRC - FIRST Championship Conference Session

What does the spline paramater represent? When discussing 2d hermite cubic spline fits functions are created in terms of "s". Is this time?

Thank you and great presentation!
  #35   Spotlight this post!  
Unread 07-05-2015, 13:23
artK artK is offline
Just Another Person
AKA: Art Kalb
no team (No Team)
 
Join Date: Dec 2011
Rookie Year: 2010
Location: Rochester, NY
Posts: 119
artK has a reputation beyond reputeartK has a reputation beyond reputeartK has a reputation beyond reputeartK has a reputation beyond reputeartK has a reputation beyond reputeartK has a reputation beyond reputeartK has a reputation beyond reputeartK has a reputation beyond reputeartK has a reputation beyond reputeartK has a reputation beyond reputeartK has a reputation beyond repute
Re: Motion Planning and Control for FRC - FIRST Championship Conference Session

Quote:
Originally Posted by chsahit View Post
What does the spline paramater represent? When discussing 2d hermite cubic spline fits functions are created in terms of "s". Is this time?

Thank you and great presentation!
Spline parameters can be whatever you want: time, % of time, % of total arclength. When 254 implemented it in 2014, I believe we used % of total arclength. As long as you're consistent with your parameter usage, the code should be mostly the same.
__________________
Art Kalb
Team 254 (2011-2014): Head Scout, Programmer
2011, 2014 World Champions
  #36   Spotlight this post!  
Unread 07-05-2015, 20:00
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Motion Planning and Control for FRC - FIRST Championship Conference Session

Quote:
Originally Posted by chsahit View Post
What does the spline paramater represent? When discussing 2d hermite cubic spline fits functions are created in terms of "s". Is this time?

Thank you and great presentation!
Usually 's' is not time; it is just an arbitrary parameter (nominally varying between 0 and 1 for any given segment). You can reparameterize a spline by creating another function that maps 's' to something else, like time or arc length.

In other words, instead of looking up your position by calling a function x(s), you would call x(s(t)), or x(s(arc_length)).

Note that if you are creative, you can formulate the problem in different ways. In 2014, 254 actually created 2D splines by making a single function y(x). In this case, the 's' parameter was actually the x coordinate (shifted and rotated to the origin for each spline segment). There are some pros and cons to doing it this way as opposed to the more common parametric way (where you create two independent splines for x and y).

Last edited by Jared Russell : 07-05-2015 at 20:03.
  #37   Spotlight this post!  
Unread 16-10-2015, 19:42
apache8080 apache8080 is offline
Lead Programmer, Drive Coach, Scout
AKA: Rishi Desai
FRC #5677
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Jose, CA
Posts: 38
apache8080 is on a distinguished road
Re: Motion Planning and Control for FRC - FIRST Championship Conference Session

How does 254 generate the trapezoidal curve for the velocity? My assumption is you just set motor speed to max(1.0) and then calculate what the velocity is at specific time intervals until it reaches a cruise velocity. Then I guess you derive the acceleration from that velocity graph. This makes sense but where I get confused is the deceleration because if you just set the drive speed in the code to 0 then since the motor controllers are in brake mode the motors will just stop.

I am a newbie when it comes to motion profiling so these questions may seem a little dumb.
Thanks for all the help.

Last edited by apache8080 : 16-10-2015 at 20:54.
  #38   Spotlight this post!  
Unread 21-10-2015, 01:25
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Motion Planning and Control for FRC - FIRST Championship Conference Session

Quote:
Originally Posted by apache8080 View Post
How does 254 generate the trapezoidal curve for the velocity? My assumption is you just set motor speed to max(1.0) and then calculate what the velocity is at specific time intervals until it reaches a cruise velocity. Then I guess you derive the acceleration from that velocity graph. This makes sense but where I get confused is the deceleration because if you just set the drive speed in the code to 0 then since the motor controllers are in brake mode the motors will just stop.
You never want to run saturated (full PWM output). The math to handle that with a drivetrain properly is very nasty due to the non-holonomic nature of a skid steer robot and coupled dynamics.

The correct solution is to pick a velocity and acceleration for your profile such that you never run saturated while driving. For 971's 2015 robot, we used 2 m/s as the peak speed and 3 m/s^2 as the acceleration. That results in very clean motion for us which doesn't saturate.

I would suggest verifying this by picking a velocity and acceleration for your profile, driving the profile with a robot, and then plotting the PWM value requested. You should never see a request above 1.0 or below -1.0.
  #39   Spotlight this post!  
Unread 24-10-2015, 10:47
ranlevinstein's Avatar
ranlevinstein ranlevinstein is offline
Registered User
FRC #2230 (General Angels)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Israel
Posts: 9
ranlevinstein will become famous soon enough
Re: Motion Planning and Control for FRC - FIRST Championship Conference Session

Hi,
1. during autonomous why did you apply control only to the speed and rotation of the drivetrain wheels? there are other options like DFL or IOSFL and I was wondering why you didn't choose an option with regulation for the robot's absolute position and and heading.
2. Can someone from 971 please explain how did they use integral control and how to tune the gains matrices for LQR? also in your auto, did you use LQR for the trajectory? if so can you explain how you did that?

You can read more about DFL, IOSFL and posture regulation in this slideshow:http://www.dis.uniroma1.it/~deluca/r...ingControl.pdf

Any help will be greatly appreciated
  #40   Spotlight this post!  
Unread 24-10-2015, 10:54
ranlevinstein's Avatar
ranlevinstein ranlevinstein is offline
Registered User
FRC #2230 (General Angels)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Israel
Posts: 9
ranlevinstein will become famous soon enough
Re: Motion Planning and Control for FRC - FIRST Championship Conference Session

Hi,
1. during autonomous why did you apply control only to the speed and rotation of the drivetrain wheels? there are other options like DFL or IOSFL and I was wondering why you didn't choose an option with regulation for the robot's absolute position and and heading.
2. Can someone from 971 please explain how did they use integral control and how to tune the gains matrices for LQR? also in your auto, did you use LQR for the trajectory? if so can you explain how you did that?

You can read more about DFL, IOSFL and posture regulation in this slideshow:http://www.dis.uniroma1.it/~deluca/r...ingControl.pdf

Any help will be greatly appreciated
  #41   Spotlight this post!  
Unread 31-12-2015, 12:43
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 189
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
Re: Motion Planning and Control for FRC - FIRST Championship Conference Session

Quote:
Originally Posted by Jared Russell View Post
As promised, here is the recording of the session (in standard Cheesy Poof 4k of course): https://youtu.be/8319J1BEHwM
This was a wonderful presentation!

You made mention that the Talon SRX's can do a lot of "this" for you and that it is extensively documented. Are you just referring to the Feedback/Feedforward PID control built in to the Talons or can they execute a full trajectory/path? I have searched through the software manual for the Talon SRX (http://www.ctr-electronics.com/Talon%20SRX%20Software%20Reference%20Manual.pdf
) and didn't find any mention of motion planning/trajectories.

Looking through the source for CANTalon in WPILib I do see mention of trajectories and motion profiles. Is there additional documentation somewhere that I am missing that actually talks about using motion profiles?
__________________
"May the coms be with you"

Is this a "programming error" or a "programmer error"?

  #42   Spotlight this post!  
Unread 31-12-2015, 12:51
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,099
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Motion Planning and Control for FRC - FIRST Championship Conference Session

Quote:
Originally Posted by kylelanman View Post
This was a wonderful presentation!

You made mention that the Talon SRX's can do a lot of "this" for you and that it is extensively documented. Are you just referring to the Feedback/Feedforward PID control built in to the Talons or can they execute a full trajectory/path? I have searched through the software manual for the Talon SRX (http://www.ctr-electronics.com/Talon%20SRX%20Software%20Reference%20Manual.pdf
) and didn't find any mention of motion planning/trajectories.

Looking through the source for CANTalon in WPILib I do see mention of trajectories and motion profiles. Is there additional documentation somewhere that I am missing that actually talks about using motion profiles?
The motion profile stuff is being added this offseason to the CAN Talons. The documentation for it should be released at kickoff.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Closed Thread


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 06:20.

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