![]() |
Re: Mecanum or Swerve?
I'm not so much saying that an offensive robot needs to push other robots, just that a slippery bot is more susceptible to being pushed into a corner or into an unfavorable position. Anyways, I think our ideas of offense are different. We play mostly from the middle zone, and that means competing for the space under the ball return and fighting for individual balls and clear shots. We're a 10:1 plaction wheel swerve drive, btw.
|
Re: Mecanum or Swerve?
Quote:
Exactly that happened in the Michigan State Championships to us. Thunderchickens tried to play defense on us. They have traction when they want to, and can push very well. We out-pushed them somewhat and managed to wedge them in the goal for a short time, but they still kept our robot down to scoring only 5 balls. Their drivers understood that to keep the other guy from scoring, you simply push his back corner so he can't aim. Or push him into the wall so he can't turn. Or pull in front of the goal if he can't push at all, then he's done. Mechanum and omni look great as concepts, but when the rubber hits the road all it takes is one good traction bot to completely shut them down. |
Re: Mecanum or Swerve?
Quote:
Programming "absolute" mecanum/swerve, as in you push the joystick left and no matter what way the robot is oriented it moves left relative to how the drivers are facing, is more difficult. This latter case involves the use of a gyro to track current robot heading, and a lot of trig functions for each of the wheel outputs. |
Re: Mecanum or Swerve?
Control wise, swerve drive is extremely intuitive to me having play a LOT of FPS video games. The past 2 years we have had 2 2-axis joysticks for the driver (2 more for the co-driver), left hand controls all x/y translational movement, right hand controls rotation. Anyone who has played Halo before should be able to drive our robot.
Having done swerve 2 years in a row I might be a little biased, but the programming for a swerve drive seems quite simple to me if you approach position control the right way. We encapsulate a potentiometer and a motor into an object called a "steering motor", which is completely self contained with all of its own control and PID code; you have a goToAngle(angle) function that you call, and then the steering motor object takes care of everything else. We used 2 steering motor objects for our drive train this year and last, only changing port and PID constants for the most part. The great advantage about encapsulating a motor and potentiometer for position control is that its usable in many places on robots(turrets, swerve modules, kickers, arms, etc) and the code is completely plug-n-play (aside from tuning PID constants and maybe limiting the possible angles). We used the exact same code to control the angle of our turret and drive train last year, with the desired angle for the PID code coming from the camera(or joystick under manual control) and joystick respectively. The is the main reason why I made this post is to encourage teams who might be afraid of complicated PID implementations everywhere. If you do it once correctly, you won't have to do it again. Simplifying a few things slightly, you can always change the steering motor object around a little bit, and abstract out its desired angle so you can give it desired encoder ticks instead and use a driving motor instead of turning, and now you have PID distance control. |
Re: Mecanum or Swerve?
Quote:
Also, we had 1114/2056's 8WD tank drives at both our regionals demonstrating that maneuverability is more about a well-controlled high speed drivetrain and less about how many directions you can move. |
Re: Mecanum or Swerve?
Quote:
It's all how you look at it, I think. I was the student developing our first ever algorithm in 07 that split the joystick area into 16 "control zones" with hardcoded values that just got scaled based on how hard the joystick was pushed. Our current algorithm is completely dynamic based on the positions of our translation and rotation sticks. 1675 has used mecanum in 07, 08, and now this year. We are happy with our home-brewed algorithm except for the fact that we never quite get the chance to slap encoders on. (And yes, our drivers do strafe :) ) I would like to try a dropped 6-wheel one year though... |
Re: Mecanum or Swerve?
Quote:
TANK DRIVE MECANUM SEPARATION OF VARIABLES http://www.chiefdelphi.com/forums/sh...94&postcount=1 3-AXIS JOYSTICK MECANUM ALGORITHM http://www.chiefdelphi.com/forums/sh...383#post916383 ~ |
Re: Mecanum or Swerve?
Quote:
Code:
double x = stick3.getX();
|
Re: Mecanum or Swerve?
Well, if you make a simple numeric list of upsides and downsides, swerve will look bad. I think it's unanimous that the "physics" advantages are HUGE, not just theoretical. All of those other difficulties can be worked through, but it's rather difficult to "work through" mecanum's on field tradeoffs versus a swerve's.
|
Re: Mecanum or Swerve?
I thought a bit more on this Subject last night, and came to the realization that Swerve Drives are going to become more and more common in FRC. One of the biggest issues with Swerve Drives is that they're difficult to design and manufacture, and many teams could spend a whole build season doing this and not get it right. But, now that two types of swerve module are available as COTS items these two issues are almost non-existent, or no more so prevalent than in a Mecanum or Holonomic Drive.
If a team were to use the Commercially Available Team 221 Swerve Modules, then they'd really only have to build a frame in which to house them, and a system to steer them. From there, it's pretty much just a control issue, and I bet most teams could figure out how to get them working relatively easily. We've already seen a handful of teams use the Team 221 "Wildswerve" modules with some degree of success (11, 20, 234) and I've yet to hear of any failures. The only downfall to using an off the shelf Swerve Solution like the Team 221 Modules is cost. A set of 4 Swerve Modules will set you back about $1k, whereas a set of Mecanum Wheels and 4 Transmissions should run you in the ball park of $700 or so. IMO, the cost premium is worth it, especially if you're a team that plans on using an Omni-Directional Drive to it's fullest potential. Strangely enough, all of this thinking is leading me towards possibly pursuing a swerve drive for the 2011 season, should the game call for it, and I was always one of those "Why not just use a skid steer" kind of guys. In conclusion, building a reliable and effective swerve drive, seems to be getting easier by the year. (Sorry for the long post, I had a lot of thoughts to get out.) |
Re: Mecanum or Swerve?
Quote:
I'll let you know after I prototype something this summer ;) |
Re: Mecanum or Swerve?
Quote:
I disagree with making the game easier or artificially leveling the playing field through other means. I'd much rather see a large portion of teams building high quality robots by using off-the-shelf items when necessary to bolster an area of their team where they may not have the expertise. That said, swerve is tough to pull off even if you start with pre-made transmissions. Cyber Blue is hosting a swerve discussion this week in Atlanta about the months they spent leading up to competition developing the technology. :) |
Re: Mecanum or Swerve?
I'd like to ask this question on swerve drives: From what I've read, they typically don't have completely independent control of all 4 wheels, and perhaps there are choices and trade-offs on how exactly to control them and how many motors to devote to steering. How smoothly do they end up turning in place or making a tight turn for example? Does this involve wheels slipping? What is the experience on what level of control is helpful?
My experience with Mecanum is that it can turn an average-resource team into a competent scorer and move them up to seeded range, at least for Breakaway. With the included holonomic, gyro, and PID VIs programming is easy, and implementing field-oriented steering and gyro stabilization is also easy. |
Re: Mecanum or Swerve?
but, most tank drives use only 2 drive motors, whereas omni and mechanum ALWAYS use 4, so there is pore power being delivered, despite the 30% decrease, we have mechanum, and were able to push around tank drives like it was notheing
|
Re: Mecanum or Swerve?
Quote:
Code:
//Define the motors for the cardinal directionsThis was written after we looked at the ugly mess of sines and cosines that did the same thing. We may have more than the 4 cardinal directions and may divide by less than 90 but I can't recall. Not hard and allows for field centric controls given a good way of determining orientation. EDIT: Yes, I left out the fact that you need to add the matrices but really it isn't hard. |
| All times are GMT -5. The time now is 19:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi