Go to Post Not only does Dave like to post hints about the the new game...but now he's starting to post hints about the activities of the Mars rover. Does it ever stop?! - Alexa Stott [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 17-02-2011, 15:36
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,557
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: Holonomic Drive System Issues, Robot Drives Diagonally...

Quote:
Originally Posted by omalleyj View Post
I think you need explain that more clearly. The robot will go at its maximum speed in the direction any pair is going in for the omni@45 arrangement. And .7071 of that speed in the regular front-back side-side directions. The ratio is 1.4, but you give the impression that it will go faster than its wheels are turning, which is impossible in any direction.
I have found that Ether is better at explaining this than me. You can look at the gif that he attached on this page

There are several research papers published on this (mostly for robocup).
Quote:
Thus, the addition of angled omni-wheels can result in a net body velocity that is greater than the maximum radial velocity of the wheel (Ashmore and Barnes, pg. 7).
That paper goes on to say that by traveling with rotation and in an arch a holonomic robot can travel even faster. We have thought about creating a control scheme that takes advantage of this but it would be very difficult, in the context of a FIRST robot.
Reply With Quote
  #17   Spotlight this post!  
Unread 17-02-2011, 15:41
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
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: Holonomic Drive System Issues, Robot Drives Diagonally...

Quote:
Originally Posted by omalleyj View Post
I think you need explain that more clearly. The robot will go at its maximum speed in the direction any pair is going in for the omni@45 arrangement. And .7071 of that speed in the regular front-back side-side directions. The ratio is 1.4, but you give the impression that it will go faster than its wheels are turning, which is impossible in any direction.
Omni vehicle with 45 degree-mounted wheels goes faster in the forward direction than omega*R (R being wheel radius and omega being wheel angular velocity in rad/sec).

A chart comparing omni, mecanum, and standard wheels can be found here.

A force analysis of mec vs omni can be found here. A kinematic analysis can be done using a similar approach.


Reply With Quote
  #18   Spotlight this post!  
Unread 17-02-2011, 15:59
omalleyj omalleyj is offline
Registered User
AKA: Jim O'Malley
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: New Jersey
Posts: 132
omalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to behold
Re: Holonomic Drive System Issues, Robot Drives Diagonally...

Quote:
Originally Posted by Ether View Post
Omni vehicle with 45 degree-mounted wheels goes faster in the forward direction than omega*R (R being wheel radius and omega being wheel angular velocity in rad/sec).

A chart comparing omni, mecanum, and standard wheels can be found here.

A force analysis of mec vs omni can be found here. A kinematic analysis can be done using a similar approach.

Ether, I have to go build a robot now, I'll take a look.
Reply With Quote
  #19   Spotlight this post!  
Unread 21-02-2011, 09:26
Omgsar's Avatar
Omgsar Omgsar is offline
Registered User
AKA: Evan Gray
FRC #2745 (S.A.R.)
Team Role: Programmer
 
Join Date: Apr 2009
Rookie Year: 2008
Location: San Antonio
Posts: 7
Omgsar is an unknown quantity at this point
Re: Holonomic Drive System Issues, Robot Drives Diagonally...

So, judging by the responses that I have seen so far, the consensus is that it is not a coding problem?
Reply With Quote
  #20   Spotlight this post!  
Unread 21-02-2011, 13:09
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,557
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: Holonomic Drive System Issues, Robot Drives Diagonally...

I would say that it is not a problem with the code that you posted here.

It may be a problem with cRIO or the electronics. (Have you updated your cRIO image to the one that was released this week?)

Also you may want to try using mecanumDrive_Cartesian(giving x and y axis instead of magnitude and direction) instead of polar and see if that works better for you.

Have you tested on blocks and seen which wheels spin when you move each joystick axis? When you move the joysticks, do all four wheels ever spin? If you apply full power forward do your Jaguars light up in the way they are supposed to? (two red and two green most likely)

If you are still having this problem at Alamo(I hope you resolve it by than), I'll try and stop by your pit and see what we can do.
Reply With Quote
  #21   Spotlight this post!  
Unread 22-02-2011, 21:11
Andrew Schuetze's Avatar
Andrew Schuetze Andrew Schuetze is offline
499 Founder / Alamo FTC & FLL AP
no team
Team Role: Leadership
 
Join Date: Jan 2002
Rookie Year: 2001
Location: San Antonio, Texas
Posts: 689
Andrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond repute
Re: Holonomic Drive System Issues, Robot Drives Diagonally...

Thanks for all the suggestions and looking over the code. Current and most recent "fix" was to broaden the deadbands. It is now driving much more as expected. Possibly the deadband was too narrow and minor off-center stick movements where exagerated when translated into robot movement.

I'd still like to compare robot performance between the Discobots and this omnidrive robots and continue the evolution of our design process.
__________________
APS

Founder FRC 499
Parent alumni FRC 2745 & 4219
Co-Coach FTC 4549 & 6407
Alamo FTC Affiliate Partner
Alamo FLL Affiliate Partner
Reply With Quote
  #22   Spotlight this post!  
Unread 23-02-2011, 02:31
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,557
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: Holonomic Drive System Issues, Robot Drives Diagonally...

Yes, hopefully at some point we will be on the same alliance at Alamo. I think we will definitely give the other alliance some problems. They will be trying to figure out which way we are going and only we will know

See you guys in 8 days.
Reply With Quote
  #23   Spotlight this post!  
Unread 23-02-2011, 12:43
Andrew Schuetze's Avatar
Andrew Schuetze Andrew Schuetze is offline
499 Founder / Alamo FTC & FLL AP
no team
Team Role: Leadership
 
Join Date: Jan 2002
Rookie Year: 2001
Location: San Antonio, Texas
Posts: 689
Andrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond reputeAndrew Schuetze has a reputation beyond repute
Re: Holonomic Drive System Issues, Robot Drives Diagonally...

I keep envisioning a pivot move aka some great NFL running back that is heading down field and spins around a defender or your favorite NBA point guard for a driving layout

What would it take to program such a spin around either the front right or front left wheel We currently have drive/strafe and then zero degree spin coded to two joysticks. Maybe it is just driver control with drive input coming from one joystick and a spin componant coming from the other....
__________________
APS

Founder FRC 499
Parent alumni FRC 2745 & 4219
Co-Coach FTC 4549 & 6407
Alamo FTC Affiliate Partner
Alamo FLL Affiliate Partner
Reply With Quote
  #24   Spotlight this post!  
Unread 23-02-2011, 13:35
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
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: Holonomic Drive System Issues, Robot Drives Diagonally...

Quote:
Originally Posted by Andrew Schuetze View Post
What would it take to program such a spin around either the front right or front left wheel
The math is not that hard. See attached image.

Calculate how fast you want to rotate. Call that omega. That's your rotation command. Multiply omega by |AC|. That's your translation magnitude. Theta is your translation direction angle. Translation velocity vector V is perpendicular to |AC|.


Attached Thumbnails
Click image for larger version

Name:	pivot move.png
Views:	9
Size:	6.6 KB
ID:	10279  
Reply With Quote
  #25   Spotlight this post!  
Unread 23-02-2011, 14:37
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,557
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: Holonomic Drive System Issues, Robot Drives Diagonally...

The way we do it is with driver practice. To be able to pivot you have to give the robot some rotation (in our set up the x axis of the drivers right hand) and move the robot in an arc which is to keep the y constant while moving the x from positive to negative (this happens on the left stick).

We were also trying to figure out if the driver could drive around the minibot pole while holding orientation to the pole. This is not easy in our current control scheme but possible you have to make a circle with left joystick and hold a constant rotational velocity with the right one.

This is all with field centric control. Without that the first move becomes much harder while the second is much easier.
__________________

Team 647 | Cyber Wolf Corps | Alumni | 2003-2006 | Shoemaker HS
Team 2587 | DiscoBots | Mentor | 2008-2011 | Rice University / Houston Food Bank
Team 3847 | Spectrum | Coach | 2012-20... | St Agnes Academy
LRI | Alamo Regional | 2014-20...
"Competition has been shown to be useful up to a certain point and no further, but cooperation, which is the thing we must strive for today, begins where competition leaves off." - Franklin D. Roosevelt
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 12:43.

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