robotics company robot company  

Go Back   Trossen Robotics Community

» Navigation Menu
Homepage
Forums
TRC Tutorials
Member Blogs
Data Center
Image Galleries
Links Directory
Contact Us

Shop Robotics
» Introduction Tutorials

» Data Center Entries
HeartToHeart 3J Software...
By Droid Works
04-20-2008 07:08 PM
Original Phoenix body...
By Zenta
11-21-2008 05:05 PM
cm-5.pdf
By trey3670
08-22-2008 12:51 AM
PEP Sheet
By Zenta
04-20-2008 02:34 AM
Ping))).bs2
By Droid Works
08-14-2008 10:35 PM
» November 2009
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 12345
» Current Poll
Are you going to use Nerf-style weapons at the next Mech-Warfare?
Yes. - 18.75%
3 Votes
No. - 68.75%
11 Votes
Yes, but only if double damage is allowed. - 12.50%
2 Votes
Total Votes: 16
You may not vote on this poll.
» Trossen Robotics Blog
Phoenix 2.0 Software Released...
HUV Robotics Bioloid Accessories are bac...
The Quads are Coming!...
Just in time for Halloween!...
Boston Dynamics does it again...
» Join Us Elsewhere!






» Online Users: 231
10 members and 221 guests
Adam, billyzelsnack, Connor, darkback2, mallster, MikeG, tobor, Tyberius, Upgrayd, xdream
Most users ever online was 1,301, 09-11-2009 at 06:59 PM.
» Stats
Members: 3,244
Threads: 2,329
Posts: 31,356
Top Poster: Adrenalynn (5,122)
Welcome to our newest member, whinolandres
Thread: [Contest Entry] Phoenix, a multilegged creature
View Single Post
  #84  
Old 08-28-2008
Zenta's Avatar
Zenta
Zenta is offline
Bit Processor
 
Join Date: Jan 2008
Location: Norway, Stavanger
Posts: 226
Blog Entries: 1
Rep Power: 25
Zenta has much to be proud ofZenta has much to be proud ofZenta has much to be proud ofZenta has much to be proud ofZenta has much to be proud ofZenta has much to be proud ofZenta has much to be proud of
Re: Phoenix, a multilegged creature

Hi,
I've spent some more time studying kinematics lately. I've worked more with Xan's code. If you study the subroutine BodyIK you can see that it takes care of Y-rotation and the pitch and roll rotation. I'm guessing Xan used the formulas I used in the PEP sheet for the roll and pitch calculation.
To be honest I've never been pleased with these simplified rotations (pitch and roll), because they are not real body rotation. They only uses FTAN to adjust the BodyIKPosY value.
If you compare these body rotations with the rotations Matt Denton demonstrates on his
you'll understand what I mean...
Anyway, I've rewrote the BodyIK subroutine:
Code:
BodyIK [PosX, PosZ, PosY, BodyOffsetX, BodyOffsetZ, RotationY]
  ;Calculating totals from center of the body to the feet
  TotalZ = BodyOffsetZ+PosZ
  TotalX = BodyOffsetX+PosX
  ;PosY are equal to a "TotalY"
 
  ;Successive global rotation matrix:
  ;Math shorts for rotation: Alfa (A) = Xrotate, Beta (B) = Zrotate, Gamma (G) = Yrotate
  ;Sinus Alfa = sinA, cosinus Alfa = cosA. and so on...
 
  ;First calculate sinus and cosinus for each rotation:
  gosub GetSinCos [TOFLOAT(BodyRotX)]
  sinG = sinA
  cosG = cosA
  gosub GetSinCos [TOFLOAT(BodyRotZ)]
  sinB = sinA
  cosB = cosA
  gosub GetSinCos [TOFLOAT(BodyRotY+RotationY)]
 
  ;Calcualtion of rotation matrix:
  BodyIKPosX = TotalX-TOINT(TOFLOAT(TotalX)*cosA*cosB - TOFLOAT(TotalZ)*cosB*sinA + TOFLOAT(PosY)*sinB)
  BodyIKPosZ = TotalZ-TOINT(TOFLOAT(TotalX)*cosG*sinA + TOFLOAT(TotalX)*cosA*sinB*sinG +TOFLOAT(TotalZ)*cosA*cosG-TOFLOAT(TotalZ)*sinA*sinB*sinG-TOFLOAT(PosY)*cosB*sinG)
  BodyIKPosY = PosY - TOINT(TOFLOAT(TotalX)*sinA*sinG - TOFLOAT(TotalX)*cosA*cosG*sinB + TOFLOAT(TotalZ)*cosA*sinG + TOFLOAT(TotalZ)*cosG*sinA*sinB + TOFLOAT(PosY)*cosB*cosG)
 return
I've also modified other parts of the code.
BTW, I've just bought a Futaba 7C 2,4 GHz RC remote control. This gives me much better control. I'm also going to modify the 7C. Posting more info about that later.
Here is a little video demonstration:



My wife are holding the cell phone camera , she was actually impressed this time! Sorry for the bad quality. When I find time for it I'll get my Sony video camera and make a real video/film.
Reply With Quote
 
Powered by vBadvanced CMPS v3.2.0

All times are GMT -5. The time now is 12:44 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.