![]() |
Re: WCD vs. Swerve
Quote:
|
Re: WCD vs. Swerve
Quote:
Quote:
Quote:
|
Re: WCD vs. Swerve
Quote:
I find it interesting how dropping an adjective from a sentence can really change the meaning. FWIW I am not good at writing papers, but I can submit some code example when I get to that point. |
Re: WCD vs. Swerve
Quote:
If so, how do you sense when the rotation has reached its angle? potentiometer? IIRC Bomb Squad uses windows motors on each wheel to control the swerve. From what I have heard, other teams use a rod to swerve both front wheels the same amount, and can then have a manual control setup doing it this way. |
Re: WCD vs. Swerve
Quote:
|
Re: WCD vs. Swerve
Quote:
The other half will be the reverse of that where given the wheel angles and speeds, what is the current x, y and rotational (i.e. angular) velocities. " For 2 reasons... one is to render the images position on our simulation. I use text graphics on OSG (open scene graph). The other reason is for autonomous where if I can interpolate the position on a 2D field I can calculate the desired velocity and orientation to hit a target. I have achieved these tasks with WCD, but I have not yet confirmed angular motion (logomotion did not require that). I am still researching this, but I believe I can have accurate angular turns if I have reliable encoder readings of distance. Anyhow... none of this matters if we switch to swerve. |
Re: WCD vs. Swerve
Under what circumstances would you ever be commanding wheel speeds and steering angles that are not the result of an inverse kinematic calculation? If you are using kinematically correct speeds and steering angles for all four wheels, you should be getting the vehicle translational and rotational velocities which were used to compute those speeds and steering angles1. Use those vehicle translational and rotational velocities to render the image's position in your simulation. If your concern is about rapidly changing operator commands and the dynamic response of your steering and/or drive motors, and you are envisioning measuring actual wheel speeds and steering angles and using them to figure out where the vehicle is over time, then yes, you would need a way to compute what the vehicle is doing at each moment in time based on the measured wheel speeds and angles. How do you propose to do this computation? 1 unless your wheels are slipping/sliding (due to an obstruction perhaps). In that case predicting vehicle motion accurately without additional sensors seems problematic. Quote:
|
Re: WCD vs. Swerve
Quote:
Code:
FWD = (sFR*cos(aFR)+sFL*cos(aFL)+sRL*cos(aRL)+sRR*cos(aRR))/4;L and W are wheelbase and trackwidth in inches |
Re: WCD vs. Swerve
Quote:
Now that you have submitted these... I gotta try them out and let you know how they behave... I hope to have something written in the next few days. Thanks again! P.S. I do as you say take actual measurments and work with these over a slice of time... the slice of time is measured in the main loop and submitted as a delta double seconds parameter through the entire cycle. (I do not use any other threads... i.e. my own PID). |
Re: WCD vs. Swerve
Quote:
|
Re: WCD vs. Swerve
Quote:
dimensions.length is sqrt(l*l + w*w) |
Re: WCD vs. Swerve
Quote:
|
Re: WCD vs. Swerve
Quote:
This is what I have confirmed the omega equation to be: Code:
const double omega = (((_.sFR*cos(atan2(W,L)+(HP-_.aFR))/4)+Code:
void PhysicsEntity_2D::ApplyFractionalForce( const osg::Vec2d &force, const osg::Vec2d &point,double FrameDuration ) |
Re: WCD vs. Swerve
Quote:
Quote:
There was a typo in my original post. The notes at the bottom said "L and W are wheelbase and trackwidth in inches". That should have said feet. |
Re: WCD vs. Swerve
Quote:
http://www.termstech.com/files/SwerveDriveDemo.wmv The demo adds a layer of swivel management where it is paced to 18 radians per second on angular acceleration and only 270 degrees of freedom. Thanks again for these equations... now I just need a swerve drive robot to put this software on. ;) |
| All times are GMT -5. The time now is 18:32. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi