Go to Post Just to be clear, NOTHING anyone says here is a confirmation. The ONLY source for official answers to questions like this is the FIRST Q&A system. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 02-01-2011, 15:24
DaveFrederick's Avatar
DaveFrederick DaveFrederick is offline
Registered User
FRC #1895
 
Join Date: Jan 2009
Location: Manassas,VA
Posts: 37
DaveFrederick is a jewel in the roughDaveFrederick is a jewel in the roughDaveFrederick is a jewel in the rough
Re: cRIO Emulator?

bakketti,
Thanks for the reply.
Could you expand on how you imported the GRTRobot project files into your new Java Application?

I searched the help files and Google for Netbean import capabilities but am not proficient in Netbeans or Java to understand the approach. Considered copying the source files to the new product but this seemed wrong.

Thanks,
Dave Frederick
Reply With Quote
  #17   Spotlight this post!  
Unread 09-01-2011, 18:22
bakketti bakketti is offline
Registered User
FRC #0443 (Freelance Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Denver, Co
Posts: 18
bakketti is an unknown quantity at this point
Re: cRIO Emulator?

Hey sorry for the slow response. Just to be clear, I was speaking originally about the frcjcss project, not GRTFramework. I haven't messed with GRTFramework at all yet. But for frcjcss, I believe I copied the java files directly into the package folder on my C drive. Netbeans will automatically recognize the files and they will show up in your project. Hope this helps.
Reply With Quote
  #18   Spotlight this post!  
Unread 14-01-2011, 15:35
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,622
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: cRIO Emulator?

Quote:
Originally Posted by DaveFrederick View Post
I am very interested in the JAVA CRIO emulator.
Could I get a little guidance on how to get it working?

I have reviewed all of the data on the two web links:
http://code.google.com/p/grtframework/
http://code.google.com/p/frcjcss/

I have installed the plugin:
org-grtframework-grtframeworktemplate.nbm

I have unpacked and loaded the project: CurrentBot.zip

But I'm stuck and am not sure how to proceed.

Thanks in Advance,
Dave Frederick, Mentor Team 1895 - Manassas, Va
We've been a little swamped with the kick off event and all.
I decided to wander back in here and found this post.

I'm going to direct this to the attention of the lead student.

Sorry for not catching it sooner.

Documentation is everything
Reply With Quote
  #19   Spotlight this post!  
Unread 15-01-2011, 03:39
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: cRIO Emulator?

If you guys have the time, can you also please explain the classes in the networking package? It seems like they're some sort of info communication between your dashboard computer and the robot.

However, I don't see it being implemented anywhere else in your project. I would appreciate a quick example of how I could implement it (or how you implemented it last year) if I wanted to build a custom Dashboard. (which I'm assuming it's for, right?)

Thanks!
Reply With Quote
  #20   Spotlight this post!  
Unread 15-01-2011, 10:08
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
Re: cRIO Emulator?

Has anyone taken a serious look at the Java Emulated Robot Tutorial provided with SunSPOT? If I recall correctly there is a mention of an option specifically for FIRST.
__________________
while(!going.isTough());
tough.exit();

What will we do tonight, Warfa?
The same thing we do every night, Patrick. Sit and wait for Electrical.
Reply With Quote
  #21   Spotlight this post!  
Unread 17-01-2011, 15:37
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,622
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: cRIO Emulator?

Quote:
Originally Posted by Patrick Chiang View Post
If you guys have the time, can you also please explain the classes in the networking package? It seems like they're some sort of info communication between your dashboard computer and the robot.

However, I don't see it being implemented anywhere else in your project. I would appreciate a quick example of how I could implement it (or how you implemented it last year) if I wanted to build a custom Dashboard. (which I'm assuming it's for, right?)

Thanks!
No, the emulator that was written by these students does not interact with the dashboard or simulate the dashboard at all. I can't speak for any other project in this regard.

What it does do is produce a series of graphical objects that are used to take input in place of actual joysticks and display output results without actual electronic speed controllers like the Victors. Hence it needs no additional hardware besides the most basic computer with a mouse and keyboard.

So while there is a graphical component to it, and they even have graphing, those graphics are entirely unrelated to anything that goes on with the dashboard computer in the real world with the cRIO and the LabView control dashboard.

It's more an emulator than a simulator because while the code is very similar to the actual code for the robot in Java, it doesn't consider details like the WiFi bridges, some of the idiosyncrasies of the cRIO and it certainly doesn't have any underlying physics, kinematics or graphical simulation itself.

Its basic value is testing the processing of information from the input to the output and some very basic scenario mock up. It will never replace entirely the raw value of actual testing. However, from an educational perspective it lacks the daunting aspects of testing with real hardware. So someone can sit and tinker with it harmlessly and learn how their ideas will interact in a more controlled setting.
Reply With Quote
  #22   Spotlight this post!  
Unread 17-01-2011, 15:43
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,622
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: cRIO Emulator?

Quote:
Originally Posted by Patrickwhite View Post
Has anyone taken a serious look at the Java Emulated Robot Tutorial provided with SunSPOT? If I recall correctly there is a mention of an option specifically for FIRST.
I have seen this mentioned several times and while I can't deny that it does emulate robotics, it doesn't apparently specifically emulate the experience of programming the cRIO.

There are many packages out there that can simulate or emulate robotics within a virtual environment. Some even capable of some physics and kinematics.

Where the emulator differs with the work of these students is that it doesn't really simulate or emulate the robotics, it emulates the effort of programming the cRIO. Though currently what is available lacks the ability to simulate feedback so it is somewhat limited currently. This limitation is currently being explored because of the limits of real time operations in Java itself on most platforms. For those curious about the limitations of Java and timing please review the various issues of high resolution timers and Java game programming. The issues we have with this emulator are closely if not precisely the same.

Last edited by techhelpbb : 17-01-2011 at 15:49.
Reply With Quote
  #23   Spotlight this post!  
Unread 18-01-2011, 02:29
ajc ajc is offline
flourishing
AKA: Andrew Chen
FRC #0192 (GRT)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Palo Alto, CA
Posts: 6
ajc is an unknown quantity at this point
Re: cRIO Emulator?

FIRST step: remove all calls to wpi libs (DigitalPin, Jaguar, Victor, etc..), and remove the libraries

then get the Sunpot sdk
Add sunspot libs (squawk_*.jar, spotlib_*.jar, etc)
start solariam, make a new emulated spot, deploy your code, and run.

Last edited by ajc : 18-01-2011 at 02:34.
Reply With Quote
  #24   Spotlight this post!  
Unread 05-02-2013, 07:10
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: cRIO Emulator?

i've been working on one if anyone is interested...
jRIO Thread
__________________

jRIO 2013 Project
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Emulator Trouble dpeterson3 Java 9 17-08-2009 13:05
2008 O/I emulator? youngWilliam14 Programming 3 11-10-2008 15:09
vex emulator? xanarchyx Programming 1 29-09-2008 17:48
Code Emulator Mike Programming 2 05-04-2005 03:15


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

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