View unanswered posts | View active topics It is currently Thu Apr 17, 2014 11:18 pm






Reply to topic  [ 8 posts ] 
Teleop Recorder? 
Author Message
Rookie

Joined: Wed Feb 08, 2012 8:28 pm
Posts: 13
Post Teleop Recorder?
Would it be possible to set up a program that works backwards. Like you drive a robot and then it writes what you did in code. Then you could drive the robot and have it do exactly what you want in autonomous. Like you drive forward and a program translates the values returned into code. so you could say drive 10 feet forward and then the code would be generated and if you run that code the robot would do exactly what you drove it to do?
Thekid


Thu Feb 09, 2012 1:04 pm
Profile
Expert

Joined: Mon Oct 27, 2008 9:59 pm
Posts: 137
Post Re: Teleop Recorder?
My students did this several years ago. As I recall, they captured the state of the joystick at regular intervals and would then replay it so that the code wouldn't know the difference between the joystick values being updated by their replay code vs from the FCS. They used this to quickly record new autonomous routines, but only had variable success at competition.


Thu Feb 09, 2012 1:12 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Teleop Recorder?
Our team also tried this, but found that it's much more effective to manually program your autonomous.

_________________
sudo rm -rf /


Thu Feb 09, 2012 2:45 pm
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1343
Post Re: Teleop Recorder?
If you recorded this in the time domain, the playback may not be as accurate as programming autonomous using sensors. Playing back a time domain recording is essentially doing dead reckoning.


Thu Feb 09, 2012 10:11 pm
Profile
Rookie

Joined: Sun Feb 27, 2011 3:41 pm
Posts: 20
Post Re: Teleop Recorder?
Hi Guys from Team Unlimited!

We made something that does the same thing (called TriCiA, the Tracking Viscious Panda...don't ask ) :P
It works perfectly because it intelligently knows which commands to include and it will also normalize things like 91 degrees to 90 to make the robot do perfect turns. It can be tweaked to fit your robot better because we have certain servos which may not be of use to you.

Instructions
1)Open RobotC
2)Upload RecordAutonomous.c to robot
3)Run the program
4)Open the "debug stream window" in RobotC
5)Start the joystick window to start driving
6)Open ninjaWolf.exe
7)Copy the text from debug stream and paste it into the window in ninjaWolf
8)Hit "create" and it will make a bunch of functions (based on stuff we already made).
9)Feel free to also use AutonomousFunctions.c to use the functions generated by ninjaWolf.exe
Downloads
http://www.mediafire.com/?73al7igqxjghbwx (RecordAutonomous.c)
http://www.mediafire.com/?8i1fz34fz2uz3k7 (ninjaWolf.exe)
http://www.mediafire.com/?x2x9qe925icd91l (AutonomousFunctions.c)



-Good Luck Teams!


Fri Feb 17, 2012 6:33 pm
Profile
Rookie
User avatar

Joined: Wed Dec 01, 2010 5:15 pm
Posts: 29
Post Re: Teleop Recorder?
rkrishnan2012-Would you be willing to share the source for ninjaWolf.exe? I would love to be able to modify it for our robot. Thanks for sharing what you have!


Tue Feb 21, 2012 5:32 pm
Profile
Rookie

Joined: Sun Feb 27, 2011 3:41 pm
Posts: 20
Post Re: Teleop Recorder?
Sure...


Attachments:
ninjaWolf - WORKING.rar [223.53 KiB]
Downloaded 339 times
Wed Feb 22, 2012 3:06 pm
Profile
Rookie
User avatar

Joined: Wed Dec 01, 2010 5:15 pm
Posts: 29
Post Re: Teleop Recorder?
THANKS A LOT!!!!


Wed Feb 22, 2012 5:09 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.