Go to Post Never underestimate people's ability to underestimate. - Ginger Power [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-12-2007, 12:14
Leav's Avatar
Leav Leav is offline
Spud Gun Division
AKA: Leav Oz-Ari
FRC #3316 (D-Bug)
Team Role: Mentor
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Technion, Haifa, Israel
Posts: 774
Leav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond repute
Send a message via ICQ to Leav Send a message via AIM to Leav Send a message via MSN to Leav
Question Controlling a Mecanum drive with two joysticks?

Hi everyone,
I'm mentoring a team this year and the kids want to try out mecanum wheels for this season, and who am I to tell them no? (the fact that it's been a dream for me in all of my FIRST years helped... a bit... )

It seems to me there are two problems regarding the control of mecanum wheels with the normal joysticks:
  1. the calculations regarding the control of the vehicle are somewhat complex I believe. I am looking into this whitepaper:
    http://www.chiefdelphi.com/media/papers/1836

    but I am skeptic it provides the exact equations we need to use... can it be that easy? (i'm so stuck at thinking it's complex that if the solution is this simple I can't believe it's a solution )


  2. a normal joystick just doesn't have enough degrees of rotation to control a holonomic robot. so we had a couple of ideas:
    • use a two joystick design where each joystick controls the a corresponding side of the robot. this would allow full control but the exact function would need to be figured out.
    • use an analog joystick with a "sidewinder" functionality to control the spin of the robot.

I would love to have some input about our ideas from more experienced teams.

thanks alot and have a fun and educational season!

-Leav
__________________
"We choose to build robots this season and do the other things; Not because they are easy, but because they are hard."
-Paraphrasing JFK

Participated in FIRST as a student: 2005-2006 (But still learning every season!)
Mentor: 2008 - ? (Team 2630 2008-2011, and Team 3316 since 2013)
Engineer: 2011 - ? (B.Sc. and M.Sc. in Mech. Eng. from the Technion IIT)
FIRST Volunteer - 2007 - ? (MC, FTA, FIRST Aid etc.)
  #2   Spotlight this post!  
Unread 07-12-2007, 12:17
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,720
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Controlling a Mecanum drive with two joysticks?

Quote:
Originally Posted by Leav View Post
a normal joystick just doesn't have enough degrees of rotation to control a holonomic robot. so we had a couple of ideas:
    • use a two joystick design where each joystick controls the a corresponding side of the robot. this would allow full control but the exact function would need to be figured out.
This might actually be easier. Tank drive, with some code such that moving both joysticks to one side or the other causes the robot to slide. I think the main problem with a "sidewinder" joystick (other than converting it to analog) would be making sure that you don't twist it at the wrong time.
Or, a single stick using the thumb wheel to rotate (left side next to the stick) or even the button and trigger.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk


Last edited by EricH : 07-12-2007 at 12:24. Reason: new idea
  #3   Spotlight this post!  
Unread 07-12-2007, 12:23
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,941
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Controlling a Mecanum drive with two joysticks?

I think it really isn't too difficult to make it work, you can use one 2-axis joystick to move the robot in the 4 directions or diagonally, and another single axis joystick to rotate the robot. The one's we've played with here were done that way, this thread

http://www.chiefdelphi.com/forums/sh...ad.php?t=50030

has some information about it and a link to the code for a vex controller. Both of the mecanum robots used the vex controllers, not FRC, although the big one did use the big drive motors and Victor speed controllers. Our big one is shown here

http://www.chiefdelphi.com/forums/sh...ad.php?t=59027
  #4   Spotlight this post!  
Unread 07-12-2007, 15:35
Jeff K.'s Avatar
Jeff K. Jeff K. is offline
Hmm..now what?
FRC #1138 (Eagle Engineering)
Team Role: Alumni
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Chatsworth, California
Posts: 706
Jeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond repute
Send a message via AIM to Jeff K. Send a message via MSN to Jeff K.
Re: Controlling a Mecanum drive with two joysticks?

We did this last year only using 3 axes. On the left joystick, it was overall translation, with x and y. It also controlled strafing sideways, forward, and diagonal. The right joystick just had the x axis, and it was for rotation. It was relatively easy to drive.

Programming it was another story. We used another person's code that wasn't a part of FIRST and worked off of that. You can find code for how to do it on the vex platform, and base it off that.

To prototype though, do it on VEX with a holonomic drive using omni wheels in the offseason. Same code and it's definitely cheaper.

Good luck
  #5   Spotlight this post!  
Unread 07-12-2007, 15:39
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,494
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Controlling a Mecanum drive with two joysticks?

Quote:
Originally Posted by Jeff K. View Post
We did this last year only using 3 axes. On the left joystick, it was overall translation, with x and y. It also controlled strafing sideways, forward, and diagonal. The right joystick just had the x axis, and it was for rotation. It was relatively easy to drive.

Programming it was another story. We used another person's code that wasn't a part of FIRST and worked off of that. You can find code for how to do it on the vex platform, and base it off that.

To prototype though, do it on VEX with a holonomic drive using omni wheels in the offseason. Same code and it's definitely cheaper.

Good luck
I've heard/seen this is a good way to do it.

If i remember right, a team even used a turntable type input and were rather pleased with that.
  #6   Spotlight this post!  
Unread 07-12-2007, 15:58
UrsaMNet's Avatar
UrsaMNet UrsaMNet is offline
Eats Robots for Breakfast
AKA: Joe DeBlasio
FRC #1540 (The Flaming Chickens)
Team Role: College Student
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Portland, Oregon
Posts: 13
UrsaMNet is on a distinguished road
Send a message via AIM to UrsaMNet
Re: Controlling a Mecanum drive with two joysticks?

Team 1540 did this for the 2007 season. We too, spent a LOT of time trying to figure out how to get it to work best. Once we figured it out, we were astounded at how simple it can be.

Our robot had two joysticks. One controlled planar motion (pushing the joystick forward, moved the robot forward. Moving it sideways meant that the robot moved straight sideways). The other joystick controlled rotation (we only used the x-axis). Our team members picked this up pretty quickly, and it's a blast to drive.

Control wise, you can break the problem into two parts. We figured out how to control planar motion using one joystick, and wrote a function for it. Then we figured out how to do rotation, and wrote another function for that. Both of these easier problems can be easily figured out with a pen and paper to diagram out what inputs you have, and what outputs you'd want in that situation.

Then all we had to do was combine them! We started out simply averaging the values (weighted averages, actually). There are better ways to do this, but this gets you going quickly and easily. Once you've gotten that up and working, you can try to figure out optimizations which can dramatically increase the maximum speed/performance.

Mecanum drive is a lot of fun, I'm glad to see another team taking it on.

As a side note, you can setup the wheels on your base in two ways. In one arrangement, the rollers on the wheels will form an 'x' on the bottom of the robot. In the other arrangement, they'll form an 'o'. You can program both to work, but it's worth taking the time to think through what the advantages/disadvantages to each are, as the two aren't interchangeable.

I hope that's helpful. I'll admit I haven't looked at the whitepaper. Good luck!
__________________
FORMER programmer, webmaster, team captain, driver extraordinare (now I'm just a volunteer)

Team 1540
- The Flaming Chickens - (Our Website)

2008 Oregon Regional Winner
2008 Oregon Regional Engineering Inspiration Award
2008 Oregion Regional Best Website Award
2007 San Diego Regional Second Seed
2007 San Diego Regional Motorola Quality Award
2007 Pacific Northwest Regional Chairman's Award Winner
2007 Pacific Northwest Regional Finalist
2005 Best Website Award - Championship Event
2005 7th Seed Alliance Captains - Pacific Northwest Regional
2005 Best Website Award - Pacific Northwest Regional
2005 Rookie Inspiration Award - Pacific Northwest Regional
  #7   Spotlight this post!  
Unread 07-12-2007, 20:40
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 944
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Controlling a Mecanum drive with two joysticks?

Quote:
Originally Posted by Leav View Post
  • use a two joystick design where each joystick controls the a corresponding side of the robot. this would allow full control but the exact function would need to be figured out.


-Leav
Be careful with implementation if you decide to go with tank. If you move the sticks opposite ways, the robot will be trying to tear itself apart/compress itself (yes I know it might be hard to do by accident but closed loop is better than open loop )


I believe 1675's Mecanum control was 1 stick left/right did pivot, the other stick did all directions of translation (including forward and backward)
  #8   Spotlight this post!  
Unread 09-12-2007, 18:16
joeweber's Avatar
joeweber joeweber is offline
Coach team 1322
FRC #1322 (G.R.A.Y.T. Leviathons)
Team Role: Coach
 
Join Date: Jul 2007
Rookie Year: 2000
Location: Fenton, Michigan
Posts: 339
joeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant future
Re: Controlling a Mecanum drive with two joysticks?

A simple way to use two joysticks is to tie them together mechanicaly so they will not go away from each other or together and use the mixing program for one joystick that comes with the control system. You can use the left joystick to control the left drives and the right joystick to control the right drives. You can go forward , back angle, and as you move the joysticks in oposit directions it will rotate. This is a simple fix and is easy to control. We did this and it solved all the problems. We did try to use one joystick to do everything but it was hard to have fine control. Also when you twist the controler to rotate you could get lots where your robot is actually going.
__________________
If your not dirty than you must be just watching.
Thank's to http://weberelectric.biz/

FRC Team sitehttp://team1322.org/
2004 Great Lakes Xerox Creativity Award, 2008 Web Site Excellence Award, 2010 Kettering District and Western Michigan District Excellence in Engineering award, 2011 Kettering District Gracious Professionalism Award. 2011 Ann Arbor and State Cooperation Awards.2013 Kettering Xeroc Creativity Award.2015 Escanaba Chairman's Award.2015 Kettering Spirit Award.2016 Kettering Chairman's Award
FTC Lightining Boltz 5954, Thunder Botz 7032http://team1322.org/vex.htm
  #9   Spotlight this post!  
Unread 09-12-2007, 18:25
T3_1565 T3_1565 is offline
Registered User
AKA: Twitch Drive Designer
FRC #1360
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: Burlington, Ontario
Posts: 854
T3_1565 has a brilliant futureT3_1565 has a brilliant futureT3_1565 has a brilliant futureT3_1565 has a brilliant futureT3_1565 has a brilliant futureT3_1565 has a brilliant futureT3_1565 has a brilliant futureT3_1565 has a brilliant futureT3_1565 has a brilliant futureT3_1565 has a brilliant futureT3_1565 has a brilliant future
Send a message via MSN to T3_1565
Re: Controlling a Mecanum drive with two joysticks?

we are also thinking to use a omni wheel design this year as well (also a dream of mine lol ) and we have decided on a two joystick operation. (as people of said, one joystick controls forward backward and strafing, whilst the other comtrols rotation)

The main reason we went with two joysticks is because some of us one the team play First Person Shooters a lot. So this style of controlling works well with us. causes thats how we would play a FPS.

I don't know if that helps at all but that was why we chose to make ours two joystick.
  #10   Spotlight this post!  
Unread 09-12-2007, 19:11
joeweber's Avatar
joeweber joeweber is offline
Coach team 1322
FRC #1322 (G.R.A.Y.T. Leviathons)
Team Role: Coach
 
Join Date: Jul 2007
Rookie Year: 2000
Location: Fenton, Michigan
Posts: 339
joeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant futurejoeweber has a brilliant future
Re: Controlling a Mecanum drive with two joysticks?

If you invest in doing omni directional drive, make sure you have drivers that can handle the multi layered tactics required to drvie it. We enjoyed having a robot with it but we did not have drivers that were good enough to use its full potential. Some problems with using it is traction, but if you add addtional layers of wheels you get a little more traction. Our robot was very fast , and you can get out of traps quicker. We were able to go up ramps with out any trouble, and could coral balls very easy. We do have some information on what we did on our web site. http://team1322.org/tech_tips.htm
__________________
If your not dirty than you must be just watching.
Thank's to http://weberelectric.biz/

FRC Team sitehttp://team1322.org/
2004 Great Lakes Xerox Creativity Award, 2008 Web Site Excellence Award, 2010 Kettering District and Western Michigan District Excellence in Engineering award, 2011 Kettering District Gracious Professionalism Award. 2011 Ann Arbor and State Cooperation Awards.2013 Kettering Xeroc Creativity Award.2015 Escanaba Chairman's Award.2015 Kettering Spirit Award.2016 Kettering Chairman's Award
FTC Lightining Boltz 5954, Thunder Botz 7032http://team1322.org/vex.htm
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: Jester Drive:Mecanum Wheel Drive Train Ken Delaney 357 Technical Discussion 64 29-03-2006 22:16
two joysticks TEAM 1436 Control System 14 03-03-2005 21:23
Controlling Solenoids With Victors Brandon_Cmpvir Electrical 20 16-03-2004 10:21
controlling with the radio Lord Nerdlinger Programming 2 17-02-2004 22:40
Two Right Joysticks??? Evil_Warlord_42 Control System 26 28-01-2004 23:59


All times are GMT -5. The time now is 08:22.

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