Go to Post So... the question is this: Does Grady keep his stuffed animals on his Barbie House for playtime, or in his bed to help him go sleepy-pie at night-night time? - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 21-02-2011, 03:56
sakekasi sakekasi is offline
Registered User
AKA: Saketh Kasibatla
FRC #1160 (Firebird Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: San Marino, CA
Posts: 6
sakekasi is an unknown quantity at this point
Send a message via AIM to sakekasi
Holometric Drive Pseudocode?

As an off season project, I am working on a holometric drivetrain system with a mechanic on my team. A holometric drive has 4 omni wheels at 45 degree angles to a square frame and can go in any direction using vector cancellation.

I was wondering how I would compute the speeds to power the wheels at given the x and y components of the vector that indicates the desired motion of the robot.

Any ideas?

Thanks in advance.
__________________


  #2   Spotlight this post!  
Unread 21-02-2011, 04:57
Galum's Avatar
Galum Galum is offline
Registered User
AKA: Gal Barkai
FRC #1657 (HaMosad)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Israel
Posts: 52
Galum is on a distinguished road
Send a message via MSN to Galum
Re: Holometric Drive Pseudocode?

We did something along these lines just this summer! I'll ask our programming crew leader to post here once school-day is over
__________________
2005, 2006, 2007, 2009, 2010 Israeli Champions
2011 Israeli Finalists 2006, 2007 Israeli RCA
CSA 2012-present
  #3   Spotlight this post!  
Unread 21-02-2011, 06:15
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: Holometric Drive Pseudocode?

I believe the code is exactly like Mecanum drive. We have code we use for this. The nice thing is you can modify the values to your liking. You pass in Power, Direction and Turn. We use a single joystick for this that has x, y and twist. If you look at the code you will see that the twist is returned as throttle. This is because this joystick is mapped a little differently. No big deal.

You call the Mecanum function 4 times, once for each wheel. Works very well.


You can get my 2010 code at http://www.frc272.com/seminar/Archive

Below is an example how to use them. (fbw stands for fly by wire, We read inputs and sensors into fbw variables, cook them a little and the write to outputs.)

fbw.f_LeftFrontDriveMotorPower = GetMecanumPower(LC2010::kMecanumLeftFront, fbw.f_DriverDirection, fbw.f_DriverPower, fbw.f_DriverTurn);

fbw.f_LeftRearDriveMotorPower = GetMecanumPower(LC2010::kMecanumLeftRear, fbw.f_DriverDirection, fbw.f_DriverPower, fbw.f_DriverTurn);

fbw.f_RightFrontDriveMotorPower = GetMecanumPower(LC2010::kMecanumRightFront, fbw.f_DriverDirection, fbw.f_DriverPower, fbw.f_DriverTurn);

fbw.f_RightRearDriveMotorPower = GetMecanumPower(LC2010::kMecanumRightRear, fbw.f_DriverDirection, fbw.f_DriverPower, fbw.f_DriverTurn);
  #4   Spotlight this post!  
Unread 21-02-2011, 08:11
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: Holometric Drive Pseudocode?

Quote:
Originally Posted by sakekasi View Post
As an off season project, I am working on a holometric drivetrain system with a mechanic on my team. A holometric drive has 4 omni wheels at 45 degree angles to a square frame and can go in any direction using vector cancellation.

I was wondering how I would compute the speeds to power the wheels at given the x and y components of the vector that indicates the desired motion of the robot.

Any ideas?
I think you'll find what you are looking for here and here.

Or here, at line 00460.

BTW, the word you want is "holonomic" not "holometric":

http://www.holonomicwheel.com/index.jsp

http://en.wikipedia.org/wiki/Omni_wheel



Last edited by Ether : 21-02-2011 at 08:22.
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


All times are GMT -5. The time now is 13:18.

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