Go to Post I for one think this kind of robot "love" is absolutely inappropriate for children and both teams should have been condemned for such graphic displays. - Chris is me [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 07-11-2012, 17:37
Priyesh69 Priyesh69 is offline
Registered User
FRC #3988
 
Join Date: Nov 2012
Location: montreal
Posts: 46
Priyesh69 is an unknown quantity at this point
Mecanum wheel labview help

Mecanum wheel labview help
This is our second year of frc so we aren't to much experience about labview.
We are making a small robot with mecanum wheels and I need help to make that program. We are folowing this pdf www.chiefdelphi.com/media/papers/download/2934
but im stuck with the gobal robot code.vi mention in it. Can you please help or give us an other way to do thie mecanum code on labview, a screenshot or a sample code would be very kind of you.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-11-2012, 00:41
vhcook's Avatar
vhcook vhcook is online now
Reader of Things
AKA: Victoria
FRC #1939 (Kuh-nig-its)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, MO
Posts: 546
vhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond repute
Re: Mecanum wheel labview help

This doesn't have to be as complicated as the presentation is making it. While there are some great ideas in there, they aren't absolutely necessary. We use mecanum more often than not, and we do it like this:

In begin.vi, open a 4-motor drivetrain. In teleop (and autonomous if you're planning on moving then), rather than using the Arcade or Tank robotdrive VIs, use Holonomic in Cartesian mode. X axis is strafe left/right, Y is forward/backward, Z is rotation clockwise/counterclockwise - attach to your joystick axes as desired. That's all you have to do to get basic movement.

Testing on blocks:

If these tests fail for one or more wheels, check wiring and invert settings in begin.vi. If they are exactly backwards, consider your sign convention for what constitutes forward/right/clockwise on the robot vs your control inputs and adjust accordingly.

- Give the robot Y axis forward only. Confirm all wheels move forward.

- Give the robot Y axis reverse only. Confirm all wheels move backward.

- Give the robot X axis "left" only. Check wheel movement - front wheels should be going back, rear wheels should be going forward.

- Give the robot X axis "right" only. Check wheel movement - front wheels forward, rear wheels backward.

- Give the robot Z axis "clockwise/right turn" only. Check wheel movement - left wheels forward, right wheels back. This is will make the robot spin in place. In real driving, if you want to arc the turn, you would also provide some Y axis forward.

- Give the robot Z axis "counterclockwise/left turn" only. Check wheel movement - right wheels forward, left wheels back.

- Once all behavior is as expected, put the robot on the floor and start driving.
__________________


Reply With Quote
  #3   Spotlight this post!  
Unread 08-11-2012, 08:39
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Mecanum wheel labview help

Quote:
Originally Posted by vhcook View Post
- Give the robot X axis "left" only. Check wheel movement - front wheels should be going back, rear wheels should be going forward.

- Give the robot X axis "right" only. Check wheel movement - front wheels forward, rear wheels backward.
I don't think the above is correct.

It should be:


X axis "left" only: front_right and rear_left wheels forward, front_left and rear_right wheels backward

X axis "right" only: front_left and rear_right wheels forward, front_right and rear_left wheels backward




Last edited by Ether : 08-11-2012 at 08:43.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-11-2012, 12:01
Priyesh69 Priyesh69 is offline
Registered User
FRC #3988
 
Join Date: Nov 2012
Location: montreal
Posts: 46
Priyesh69 is an unknown quantity at this point
Re: Mecanum wheel labview help

Can you please show what youre saying in a code screenshot or explaine in more detaille like what to add in each vi and how to connect de axis and do we need a gyroscope do make it work better
Reply With Quote
  #5   Spotlight this post!  
Unread 08-11-2012, 12:05
Priyesh69 Priyesh69 is offline
Registered User
FRC #3988
 
Join Date: Nov 2012
Location: montreal
Posts: 46
Priyesh69 is an unknown quantity at this point
Re: Mecanum wheel labview help

Quote:
Originally Posted by Ether View Post
I don't think the above is correct.

It should be:


X axis "left" only: front_right and rear_left wheels forward, front_left and rear_right wheels backward

X axis "right" only: front_left and rear_right wheels forward, front_right and rear_left wheels backward



How do we input this in the labview code
Reply With Quote
  #6   Spotlight this post!  
Unread 09-11-2012, 22:19
vhcook's Avatar
vhcook vhcook is online now
Reader of Things
AKA: Victoria
FRC #1939 (Kuh-nig-its)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, MO
Posts: 546
vhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond repute
Re: Mecanum wheel labview help

Quote:
Originally Posted by Ether View Post
I don't think the above is correct.

It should be:


X axis "left" only: front_right and rear_left wheels forward, front_left and rear_right wheels backward

X axis "right" only: front_left and rear_right wheels forward, front_right and rear_left wheels backward



So it should. My original description results in a robot that bounces in place in a particularly unhelpful manner.
__________________


Reply With Quote
  #7   Spotlight this post!  
Unread 10-11-2012, 16:15
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Mecanum wheel labview help

that doesn't go in the code.

The states described above are the observed behavior for moving left and right, assuming that your wheels are all mounted the right way up (yes, mecanum wheels do have a right way and a wrong way to be installed, looking at the bottom, the rollers should make an X).

The VI that you want is on the robot drive palette, and is labeled holonomic drive VI, as has already been stated, just wire it up and it works.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #8   Spotlight this post!  
Unread 10-11-2012, 16:35
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Mecanum wheel labview help

Quote:
Originally Posted by MAldridge View Post
yes, mecanum wheels do have a right way and a wrong way to be installed, looking at the bottom, the rollers should make an X

No, looking at the bottom the rollers should make an O.

bottom view:
/\
\/

top view:
\/
/\



Reply With Quote
  #9   Spotlight this post!  
Unread 10-11-2012, 18:36
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Mecanum wheel labview help

Sometimes it helps to make a mnemonic ...
"O from below make Mecanum go"

To think it through, if the rollers are set up to be an X from below, by hand, you will be able to spin the robot about the center of the X with almost no resistance. The problem with that is, the robot now has no resistive force to propel itself about that axis. Reversed wheels will still allow it to move forward, backward, left, and right, but not to spin. It may also help to draw, or imagine, the friction force vectors aligned with the roller axis where it touches the ground.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 11-11-2012, 15:35
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Mecanum wheel labview help

I stand educated.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
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 21: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