Go to Post No one ever said that this was easy. - Jaine Perotti [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 13-03-2011, 20:18
Nemo's Avatar
Nemo Nemo is offline
Team 967 Mentor
AKA: Dan Niemitalo
FRC #0967 (Iron Lions)
Team Role: Coach
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Iowa
Posts: 804
Nemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond repute
Re: Arcade mecanum drive

Quote:
Originally Posted by jhellr13 View Post
I have been looking around at info regarding mecanum driving. I have seen you really need to use tank drive. I also found it can be done with arcade too. Except that rotating doesn't work like in tank drive. I was thinking if we used arcade drive with the logitech attack 3d extreme joystick that has a swivel joystick, would rotation then work if linked up to the swivel axis. Could this work?

Thanks
You could certainly set mecanum up as a tank drive with one x-axis (or both x-axes averaged together) used for strafing. You'd need to invent your own mixer code that tells the motors what to do when, for example, your driver hits up-left 50% on the left stick and down-left 25% on the right stick. It would need to output the four motor outputs that would make the robot do a combination of moving diagonally left-forward at a certain rate and rotating to the right at the appropriate rate.

Actually, I'm thinking about this, and maybe that would be relatively simple to try. If you just subtracted Y-axis 1 from Y-axis 2 and divided by 2, you'd have a rotation axis. You average Y-axis 1 and Y-axis 2 together to get your forward/backward axis. Then you average X-axis 1 and X-axis 2 together to get your strafing axis. Feed those three numbers into the mecanum code that all teams were given, and I think it would work as a tank drive.

Quote:
Originally Posted by Ether View Post
I could be wrong, but I would guess that field-oriented-control is what lets the 488 robot do what you saw in that video. You could just as easily do that with a single joystick with the rotation controlled by the twist axis if the translation commands (Y and X) are field-oriented.
of a 3-axis joy
Field oriented control would certainly make this easier. Our drivers have also practiced this maneuver using the regular arcade drive / robot-oriented control that is provided in the FRC LabView libraries with our own gyro feedback VI added in. This year we used an XBox controller to drive, which has two joysticks. One of the sticks does rotation (uses x axis only) and the other does forward/backward and strafing. We also set up the trigger buttons to strafe left/right (those are axes, not True/False inputs). To do the 180 maneuver in the video on robot centric control, you have to start the forward/backward joystick straight ahead. Then you have to start rotating it (go sideways on the rotation axis) and simultaneously roll the other joystick around from front to sideways to backwards.

Field-oriented control is easier to use in some ways but not strictly superior to robot-oriented control. For one thing, robot oriented control allows you to achieve the robot's maximum speed simply by hitting straight forward. Because you can't go as fast at an angle or sideways, that isn't always true on field oriented control. Also, moving the joystick straight forward always moves your manipulator straight forward (if it points forward), which can be preferable if you have the robot lined up to a field element and just need to move it closer. I talked to our driver for this year about the trade-offs, and he prefers robot oriented control. It does take some practice, particularly in a game like this year's where the robot is facing toward you so much of the time.

Last edited by Nemo : 13-03-2011 at 20:22.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-03-2011, 14:21
buchanan buchanan is offline
Registered User
FRC #2077 (Laser Robotics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Wales, WI
Posts: 67
buchanan is just really nicebuchanan is just really nicebuchanan is just really nicebuchanan is just really nice
Re: Arcade mecanum drive

Regarding the tradeoffs between field-oriented vs robot-oriented...

It's really simple to set up the controls so that the driver can use whichever one works best for a given situation or maneuver. Set up one stick to operate robot-oriented and another field-oriented. Whichever one is non-zero takes control. Have a precedence rule in case both get grabbed, but in practice that won't happen if the same driver moves the same hand from one to the other.

2077 has used this arrangement with holonomic drive for the past two years. Our driver uses the field-oriented motion stick when looking directly at the field (3rd person viewpoint, 3rd person control) and the robot-oriented stick when looking through the camera (1st person orientation). We prefer rotation on a separate stick, common to both modes, but using twist on the motion sticks would work too.

Try that with your 6wd and let us know how it goes .
Reply With Quote
  #3   Spotlight this post!  
Unread 14-03-2011, 14:37
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
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: Arcade mecanum drive

Quote:
Originally Posted by buchanan View Post
It's really simple to set up the controls so that the driver can use whichever one works best for a given situation or maneuver. Set up one stick to operate robot-oriented and another field-oriented. Whichever one is non-zero takes control. Have a precedence rule in case both get grabbed, but in practice that won't happen if the same driver moves the same hand from one to the other.
Just use one joystick, but use robot-oriented when the trigger is pulled and field-oriented when the trigger is not pulled.



Reply With Quote
  #4   Spotlight this post!  
Unread 14-03-2011, 14:59
buchanan buchanan is offline
Registered User
FRC #2077 (Laser Robotics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Wales, WI
Posts: 67
buchanan is just really nicebuchanan is just really nicebuchanan is just really nicebuchanan is just really nice
Re: Arcade mecanum drive

Quote:
Just use one joystick, but use robot-oriented when the trigger is pulled and field-oriented when the trigger is not pulled.
Certainly could do; whatever the drivers prefer.

While the IMO trite "lots of practice" is true in principle, and MAY even be the most important factor in driving effectiveness, it's not the only factor. Some control arrangements are better than others, and it's worth some effort to design one that works well for your situation. For a given amount of practice, whether a little or a lot, better control design gives better results, and better control design means better results with limited (imagine that) practice.

As the only team in FIRST that doesn't have a full sized practice field and multiple practice robots on which dedicated drivers with no other tasks during the build season can practice on from day one, we've had to deal with the fact that our drivers can't get as much practice as we'd like them to have. We are no doubt unique as well in having on ocasion not had a working robot ready for driver practice until ship day or regional practice day.

Practice is good, but good controls can help you deal with not getting as much of it as you'd like. One of the big practical advantages of holonomic drive is it gives you some control options you don't have with other arrangements
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 16:05.

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