|
|
|
#1
|
|||||
|
|||||
|
Code Emulator
Hey,
I'm looking for a code emulator, something kind of like roboemu but one that will let me see where on the field my robot is. Anybody have something like this? |
|
#2
|
||||
|
||||
|
Re: Code Emulator
Are you looking for some program that would take encoder counts to determine where on the field the robot is? I do not think any exist at the moment, as I was going to write one a few weeks ago and then decided not to.
|
|
#3
|
||||
|
||||
|
Re: Code Emulator
The best way to do this would be to hack up RoboEmu to calculate the angle and position based on the speed of the robot.
A really good way to do it would be to take a CAD model of your robot, hook it up into a 3d engine and allow the tetras to be separate objects. Then, make your robot's position be affected by PWM motor values (add a randomness and non-linear factor too). This project is definitely possible, and really isn't too hard, assuming you have the time to take all these different engines and attach them together. Aside from this, there isn't any easier way to do it without cheating by using a 2d-model, and hard-coding arm positions for picking up tetras. Just determining field positions (no arms or tetras) is really easy, and I was planning on doing that (change angle by difference of motor speeds, set velocity to motor speeds, ramping up velocity based on the pwm value), except I didn't know QT too well, and especially not the drawing part of it. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Out of the Box Camera Code | russell | Programming | 9 | 21-10-2009 05:28 |
| Code suddenly fails to initialize | miketwalker | Programming | 11 | 19-02-2005 15:23 |
| Team THRUST - Kevin's Code and Camera Code Combine | Chris_Elston | Programming | 3 | 31-01-2005 22:28 |
| Sourceforge for Code Repository and other stuff | SilverStar | Programming | 9 | 15-01-2005 21:16 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |