Go to Post I think that this clearly indicates that 2017 will be the year we finally see 3.63 robots per alliance. - Caleb Sykes [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 29-01-2017, 14:56
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Lightbulb Most Graceful Mecanum Robots?

We're building a mecanum drive train robot this year. I'm curious what the best examples of skilled mecanum driving in the past are, and how those robots have mapped xbox controller inputs into robot outputs.

What are some of the most graceful examples of mecanum robot driving in the past? I'm looking in particular for videos that highlight mecanum robots where the driver and the robot seem to be of one mind, demonstrating really great control of the robot.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2017, 15:06
wjd13 wjd13 is offline
Registered User
FRC #4905 (Andromeda One)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Ayer, MA
Posts: 55
wjd13 is an unknown quantity at this point
Re: Most Graceful Mecanum Robots?

1519 was dominant with mecanum wheels in New England for Recycle Rush.

Here's a video from the NEDCMP: https://www.youtube.com/watch?v=EbsC4E76wUY

Here is a thread where they posted their code - take a close look at the subsystem called Drive. https://www.chiefdelphi.com/forums/s...code+r elease
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2017, 15:09
wlaroche wlaroche is offline
Registered User
FRC #2177 (Robbettes)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Mendota Heights
Posts: 21
wlaroche is on a distinguished road
Re: Most Graceful Mecanum Robots?

One of the best Mecanum drivers I have ever seen was from 2052 back in 2013. Check out any matches for 2052 on TBA in 2013.

https://youtu.be/IMvT3ihrUaY

It also helped that the robot was well designed for that game.
__________________
If it was easy someone else would do it.

Last edited by wlaroche : 29-01-2017 at 15:11.
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2017, 08:19
SpecialBuilder SpecialBuilder is offline
Registered User
FRC #2053
 
Join Date: Apr 2015
Location: New York
Posts: 1
SpecialBuilder is an unknown quantity at this point
Now, I may have a slight bias here, but team 2053 has used mechanum in almost every game, last year even combining mechanum and tank drive.

Sent from my SAMSUNG-SM-J320A using Tapatalk
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2017, 08:27
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 213
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Most Graceful Mecanum Robots?

Quote:
Originally Posted by SpecialBuilder View Post
Now, I may have a slight bias here, but team 2053 has used mechanum in almost every game, last year even combining mechanum and tank drive.

Sent from my SAMSUNG-SM-J320A using Tapatalk
*Mecanum

And here is a video

https://youtu.be/oCj6dN8oyGQ
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2017, 08:59
Taylor's Avatar
Taylor Taylor is offline
Professor of Thinkology, ThD
AKA: @taylorstem
FRC #3487 (Red Pride Robotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Indianapolis, IN, USA 46227
Posts: 4,605
Taylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond repute
Re: Most Graceful Mecanum Robots?

As far as controls, I've seen three main schools of thought:
1-joystick: front, back, left, right for translations, twist for turning
2-joystick: A front, back, left, right translations B turn (side-side)
2-joystick: A front, back, CW, CCW B left, right translations
__________________
Hi!
Reply With Quote
  #7   Spotlight this post!  
Unread 30-01-2017, 09:04
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 213
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Most Graceful Mecanum Robots?

Quote:
Originally Posted by Taylor View Post
As far as controls, I've seen three main schools of thought:
1-joystick: front, back, left, right for translations, twist for turning
2-joystick: A front, back, left, right translations B turn (side-side)
2-joystick: A front, back, CW, CCW B left, right translations
We've found that if you are using an Xbox 360 like controller, then it's easiest to do.

Left joystick: forward backwards, left, right

Right joystick: rotate CW and CCW.

We also use field oriented drive and have buttons on the driver's controller to rotate to different angles.

https://github.com/team2053tigertronics/2017Code

You can find the rotate to angle code in the Tigerdrive folder and the actual drive command in /Commands/Drive
Reply With Quote
  #8   Spotlight this post!  
Unread 30-01-2017, 09:13
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 121
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Most Graceful Mecanum Robots?

The standardized way to do mecanum drive comes from remote control aircraft, particularly helicopters. 2 sticks: A_y is y movement, A_x is x movement, and B_x is rotation. This leaves B_y open for a "throttle" typically, in this case a climber would make the most sense.

Also, if you square your inputs while maintaining the sign of the initial value, your driving becomes much more graceful. Cubing your inputs is often too much.

Typically, in mecanum years, I train my team's drivers to:
1: Rotate around a point while facing it, this is a very common task in-game when aligning the robot to anything.
2: Travel in a straight line while rotating half speed. Requires very good orientation.

That way, you never need to use field-oriented drive, and you never need to worry about gyro drift killing your endgame.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #9   Spotlight this post!  
Unread 30-01-2017, 13:29
RoboChair's Avatar
RoboChair RoboChair is offline
He who fixes with hammers #tsimfd
AKA: Devin Castellucci
FRC #1678 (Citrus Circuits and 5458 Digital Minds)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: Davis, CA
Posts: 708
RoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond repute
Re: Most Graceful Mecanum Robots?

If you are going to do mecanum, please try and program it Field-Centric as you will get the greatest benefit from it that way.

I don't want to see another team make a tank drive with expensive fancy wheels. make strong use of them every time you move on the field.
__________________

12 Years and counting! Over a third of my life has been spent with FRC.
Reply With Quote
  #10   Spotlight this post!  
Unread 30-01-2017, 13:38
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,786
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Most Graceful Mecanum Robots?

Field-centric and a quality gyro do wonders to make a mecanum drive feel intuitive and accurate. It's just much harder if not impossible to get that kind of fluid driving + strafing with robot centric controls - that's when you get into "crappy tank drive" style driving.

Other than that, Halo controls - lateral movement on the left stick and rotation either on the right stick or on the shoulder buttons if you're feeling adventurous.

Check out 2052 from MN; their 2013 robot in particular had an excellent mecanum drive. I believe they were field centric and used these sort of controls. 2791's 2015 robot was a dream to drive with these controls, but it was pretty bad at everything else it did that year, so I don't have great video of it being dominant or anything.
__________________
Mentor / Drive Coach: 228 (2016-?)
--2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
.
College Mentor: 2791 (2010-2015)
-- 2015 TVR Motorola Quality, FLR GM Industrial Design -- 2014 FLR Motorola Quality / SFs (with 341, 4930)
-- 2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
-- 2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 MN 10K Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
Reply With Quote
  #11   Spotlight this post!  
Unread 30-01-2017, 13:54
Andrew_L's Avatar
Andrew_L Andrew_L is offline
#DriveSwerveEveryDay
AKA: Drübr Inc.
FRC #1323 (Madtown Robotics) #971 (Spartan Robotics)
Team Role: Mentor
 
Join Date: Sep 2016
Rookie Year: 2011
Location: San Jose
Posts: 100
Andrew_L has a brilliant futureAndrew_L has a brilliant futureAndrew_L has a brilliant futureAndrew_L has a brilliant futureAndrew_L has a brilliant futureAndrew_L has a brilliant futureAndrew_L has a brilliant futureAndrew_L has a brilliant futureAndrew_L has a brilliant futureAndrew_L has a brilliant futureAndrew_L has a brilliant future
Re: Most Graceful Mecanum Robots?

Here is a control scheme for omnidirectional robots that I developed earlier that, in my opinion, gives the driver the most useful control over the robot's position and orientation: https://docs.google.com/document/d/1...it?usp=sharing

I'd be happy to answer any questions about it.
Reply With Quote
  #12   Spotlight this post!  
Unread 30-01-2017, 14:02
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 121
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Most Graceful Mecanum Robots?

Quote:
Originally Posted by RoboChair View Post
If you are going to do mecanum, please try and program it Field-Centric as you will get the greatest benefit from it that way.

I don't want to see another team make a tank drive with expensive fancy wheels. make strong use of them every time you move on the field.
I train my drivers to use mecanum effectively without field orientation. Running mecanum wheels like tank drive uses far less current, depending on the wheels.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java

Last edited by flemdogmillion : 30-01-2017 at 14:09.
Reply With Quote
  #13   Spotlight this post!  
Unread 30-01-2017, 14:05
Waz Waz is offline
Strategy and programming mentor
AKA: Steve
FRC #2357 (System Meltdown)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2009
Location: Raymore, MO
Posts: 20
Waz is an unknown quantity at this point
Re: Most Graceful Mecanum Robots?

In 2015 when I was mentoring team 4561 in Durham NC, we used two joysticks and field relative drive (could switch to robot relative if desired).

As with many such designs, one stick was for movement. We would move, relative to the field, in the direction the stick was pushed and at a speed relative to the deflection of the stick.

While we used the second stick for rotation, I think we did it a bit differently than most. We would use PID control to rotate the robot to the field relative direction that the stick was pushed. It was not just rotate CW or CCW. It would rotate CW or CCW depending on which way was the smaller angle (always less than or equal to 180 degrees) to the desired field relative angle.

This made it easy to move toward a location on the field and by the time you were there, be pointing in the direction you wanted. For example, to move somewhere straight up the field and be pointing to the right, push the movement stick forward and the rotation stick straight right.

I would not say we quite got it perfect, for example the drivers tended to have to push the rotation stick to an angle a bit past where they wanted the rotation to stop, but it was pretty slick.

Thanks,
Steve
Reply With Quote
  #14   Spotlight this post!  
Unread 02-02-2017, 11:15
Ken Streeter's Avatar
Ken Streeter Ken Streeter is offline
Let the MAYHEM begin!
FRC #1519 (Mechanical Mayhem)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Team: Milford, NH; Me: Bedford, NH
Posts: 475
Ken Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond repute
Re: Most Graceful Mecanum Robots?

BLUF (bottom line up front): For mecanum drive, it's real easy to code up field-centric drive as an option after getting robot-centric drive to work, and then use the one that works best for the combination of your driver, your robot, and your anticipated gameplay.

Quote:
Originally Posted by wjd13 View Post
1519 was dominant with mecanum wheels in New England for Recycle Rush.
Thanks for the kudos. The 2015 game, Recycle Rush, with no defense, was a great opportunity for teams to explore mecanum drive. We thought our mecanum drivetrain worked very well for our 2015 game strategy.

Quote:
Originally Posted by RoboChair View Post
If you are going to do mecanum, please try and program it Field-Centric as you will get the greatest benefit from it that way.
It's practically trivial to have field-centric controls on a mecanum drive robot. After determining the commanded direction vector from the operator's controls (that's the hard part, which has to be done already), one simply rotates the vector by the robot's current field-centric heading (the gyro value). For the actual code, see our mecanum code from 2015, as linked above.

In 2015 with our mecanum drive, we had an OI button that could switch between the sets of controls to allow drivers to experiment with either.

Quote:
Originally Posted by RoboChair View Post
I don't want to see another team make a tank drive with expensive fancy wheels. make strong use of them every time you move on the field.
Quote:
Originally Posted by flemdogmillion View Post
I train my drivers to use mecanum effectively without field orientation. Running mecanum wheels like tank drive uses far less current, depending on the wheels.
The above pair of comments are important to consider together. The first one faults mecanum drivers for not making sufficient use of mecanum capabilities. That's a readily-apparent common issue, especially for drivers that are accustomed to driving a tank-drive robot.

However, the second post is just as important, and it's not just about saving current -- it's about the speed of getting from point A to point B! flemdogmillion's point is particularly important to remember for drivers for whom the mecanum robot is the first one they've driven (and thus doesn't have to unlearn "tank drive habits") - there are times that it is better to drive the mecanum robot like a tank drive robot!

In particular, mecanum robots strafe much slower than they drive forwards and backwards.

What the speed difference means to the driver is that if the robot is currently pointed perpendicular to the field, and wants to move nearly all the way down the field, the fastest way to get to the other end of the field is not to just strafe 40 feet sideways (which would make "strong use" of the mecanum capability). The critic from the stands, seeing the mecanum bot driven like "a tank drive with expensive wheels" in this circumstance in order to get downfield as quickly as possible, might think the driver was wasting their mecanum capability, without realizing that the driver just executed the fastest maneuver possible for their drivetrain.

For short sideways movements, mecanum strafing is clearly much faster and a big win for mecanum. For long-distance field traversal, driving straight forwards is the fastest way to get there, whether the robot is mecanum or tank.

The crossover point will vary from situation to situation. We found in 2015 that for our mecanum robot that year, there were definitely parts of our routine for which it was faster to get our mecanum robot from point A to point B by "driving like a tank" instead of making "strong use of the [mecanum wheels] every time we move." There were also short strafing movements that were a key part of our approach to harvesting the landfill and fundamental to our robot design.

But, what does this have to do with field-centric drive? Well, the use of field-centric drive insulates the driver from some of the awareness of whether the robot is strafing and/or going forwards or backwards, making it difficult to drive the mecanum robot in such a way that takes advantage of the strafing capabilities when it matters, yet minimizes the disadvantage of the *slow* strafing speed when traveling long distances.

For what it's worth, in the 2015 game with our robot, our drivers found that field-centric drive enabled a novice driver to become a reasonable driver pretty quickly and easily. However, to get to the level of "excellent driver", the robot-centric drive mechanism was better. Having the field-centric drive abstract away the knowledge of whether the robot needed to move sideways or forwards (but just know that it needed to move laterally across the field) enabled the driver to progress to a reasonable level very quickly, but that knowledge needed to be taken into consideration by the driver in order to decide when to "drive like a mecanum" and when to "drive like a tank." Using robot-centric drive all the time built that awareness & skill in the driver more easily than that same awareness and skill was developed with field-centric drive, at least in our limited usage.

Your mileage may vary and a lot of the determination of robot-centric vs. field-centric is related to driver preference and prior learned styles.

Bottom line: for mecanum drive, it's real easy to code up field-centric drive as an option after getting robot-centric drive to work, and then use the one that works best for the combination of your driver, your robot, and your anticipated gameplay.
__________________
Ken Streeter - Team 1519 - Mechanical Mayhem (Milford Area Youth Homeschoolers Enriching Minds)
2015 NE District Winners with 195 & 2067, 125 & 1786, 230 & 4908, and 95 & 1307
2013 World Finalists & Archimedes Division Winners with 33 & 469
2013 & 2012 North Carolina Regional Winners with teams 435 & 4828 and 1311 & 2642
2011, 2010, 2006 Granite State Regional Winners with teams 175 & 176, 1073 & 1058, and 1276 & 133
Team 1519 Video Gallery - including Chairman's Video, and the infamous "Speed Racer!"

Last edited by Ken Streeter : 02-02-2017 at 11:24.
Reply With Quote
  #15   Spotlight this post!  
Unread 02-02-2017, 11:33
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,786
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Most Graceful Mecanum Robots?

Quote:
Originally Posted by flemdogmillion View Post
I train my drivers to use mecanum effectively without field orientation. Running mecanum wheels like tank drive uses far less current, depending on the wheels.
You can also train your drivers to operate a field centric controls in the "tank drive direction" when going on long sprints. It's just a matter of remembering to turn and pointing in the right direction.

For a game like this one, I like having the option to switch between the two mid-match - dip into field centric for fine adjustments and robot centric for long sprints. But this of course requires even more training to be good.
__________________
Mentor / Drive Coach: 228 (2016-?)
--2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
.
College Mentor: 2791 (2010-2015)
-- 2015 TVR Motorola Quality, FLR GM Industrial Design -- 2014 FLR Motorola Quality / SFs (with 341, 4930)
-- 2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
-- 2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 MN 10K Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
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 06:44.

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