Go to Post It's good to hear I'm not nuts. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 09-01-2012, 22:45
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
There's a new version of the Cookbook posted

There is a new version of the Robot Programming Cookbook posted on the WPILib project under the documents section. It has a new section on writing command-based programs in C++ with a fairly extensive tutorial. I would highly encourage teams using C++ to check it out. It makes writing complex robot programs much simpler and provides a "cookbook" method of organizing your code.

http://firstforge.wpi.edu/sf/docman/..._documentation

I still have to add more C++ examples to go with the existing Java code, but this should make it a lot better for everyone thinking about using this approach to programming your robot.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2012, 12:14
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 343
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: There's a new version of the Cookbook posted

Hi Brad,

I'm going to work w/the students today to see if we can get this to work; I think the standardization of subsystem/command behavior is going to make distributing tasks to different students who are at different experience levels easier, and should really help as we integrate everything together.

I'm pretty experienced w/WPI Library, cRio & Dashboard in general, but since this command-based scheduler and programming model is pretty new I am hoping you'll be available to guide us through any roadblocks we encounter, either through our misunderstanding or any bugs that may remain in the Scheduler, etc.

I am assuming this forum is the best way to get this help, but if there's a better way to give you feedback on any issues we encounter please let me know.

Thanks,

- scott
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2012, 00:29
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 343
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: There's a new version of the Cookbook posted

Hi Brad,

We ran into a problem installing the FRC CPP tools plugin into Windriver 3.0.1 (one of our students is using 32-bit Windows XP). The latest cookbook says to be in the "Advanced device development" perspective, which doesn't exist in Windriver 3.0.1.

Instead, we use Help->Software Updates->Find and Install...

The Update URL we used was: http://first.wpi.edu/FRC/c/eclipse/update/

However, when we attempt to update, we get this message:

"No features found on the selected site. Choose a different site or site category."

Thanks for any help you can provide,

- scott
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2012, 17:19
SpikeyBot293's Avatar
SpikeyBot293 SpikeyBot293 is offline
Registered User
AKA: Liz Tarantino
FRC #0293 (S.P.I.K.E.)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Hopewell
Posts: 6
SpikeyBot293 is an unknown quantity at this point
Re: There's a new version of the Cookbook posted

Hi Brad!

My team and I are having the same problem as Scott. Is it possible to download the plugin in the old (3.0.1) version of Windriver? Or do we need to install the newer version (3.3.1)? If so, does the newer version work on XP 32 bit or only on Windows 7 and XP 64 bit? Or can we install the newer version on our Windows XP 32 bit computers? We only have Windows XP 32 bit computers to really work with, so will not having the plugin make or break programming in Command-Base?

Thanks!!
-Liz
__________________
Owen's Problem is....

EVERYTHING.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2012, 21:00
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
Re: There's a new version of the Cookbook posted

HI Brad,
We too only have 32bit XP machines, and are having NO luck getting the first example program to build and deploy. Had to play around a lot to get WR to see the cRio, but finally see the target. But every time we build, we only get a Makfile. We need VERY detailed instructions on how to set this up.

Thanks,
Steve - 470
Reply With Quote
  #6   Spotlight this post!  
Unread 22-01-2012, 20:41
SPatel94's Avatar
SPatel94 SPatel94 is offline
The Sage
FRC #0818 (Steel Armadillos)
Team Role: Leadership
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Sterling Heights, MI
Posts: 10
SPatel94 is an unknown quantity at this point
Re: There's a new version of the Cookbook posted

Hello Brad,

Same problem here with not having the "Advanced Device Development" perspective and with not being able to install the plugins. Copy and pasting the default parts for each .h and .cpp files for every Command and Subsystem seems the only way around this issue right now, but is there a way to fix that?

Thanks,

Sajan - 818
__________________
Let the thoughts flow.
Reply With Quote
  #7   Spotlight this post!  
Unread 22-01-2012, 21:01
TomThompson TomThompson is offline
Registered User
FRC #0847
 
Join Date: Jan 2010
Location: Philomath, Oregon
Posts: 23
TomThompson is an unknown quantity at this point
Re: There's a new version of the Cookbook posted

We are having similiar problems. I wanted to use this framework since it goes along with designs we have used in the past. Fortunately we have one Windows 7 machine to create commands and subsystems but would be better if we could do that on XP 32 bit machines. Also ran into another problem that I posted in another thread hoping for some sort of hint. The sample (GearBot) program includes the Command.h file that should be in the Commands folder. I don't see it in the example and the example doesn't build because that file does not exist. I think this is related to a problem we are having with our own program where we have a class inheriting correctly from CommandBase which in turn inherits from Command. It doesn't appear that the inheritance is working properly since the build does not recognize the class. Any help would be great.

Tom Thompson
Team 847
Reply With Quote
  #8   Spotlight this post!  
Unread 23-01-2012, 02:25
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: There's a new version of the Cookbook posted

Hey Brad,
I'll break from the pak and say...I only see the cookbook version 3 from 01/09/12 and nothing newer. Can you take a look and see what you see?

Thanks,
bob
Reply With Quote
  #9   Spotlight this post!  
Unread 23-01-2012, 10:11
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: There's a new version of the Cookbook posted

Quote:
Originally Posted by bob.wolff68 View Post
Hey Brad,
I'll break from the pak and say...I only see the cookbook version 3 from 01/09/12 and nothing newer. Can you take a look and see what you see?

Thanks,
bob
Since Brad's post was on 1/9/2012 it makes sense that's the date on the document. I looked at first forge and the latest version of the doc I see is version 3 from 1/9.

I also took a crack at installing the plug-in to the workbench and had no problems. I am running a 32-bit Windows XP machine. I don't think the perspective you are in really matters but I started from the standard application development perspective. I took screen shots of the process all the way through and have attached a word doc with the screen shots.
Attached Files
File Type: doc WPICookBookInstall.doc (1.59 MB, 41 views)

Last edited by jwakeman : 23-01-2012 at 15:14. Reason: it's 2012
Reply With Quote
  #10   Spotlight this post!  
Unread 23-01-2012, 21:21
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: There's a new version of the Cookbook posted

Ha. My bad. I realize my error here now. I was excited as I thought there was another update and got a bit carried away. :-)

bob
Reply With Quote
  #11   Spotlight this post!  
Unread 24-01-2012, 01:06
TomThompson TomThompson is offline
Registered User
FRC #0847
 
Join Date: Jan 2010
Location: Philomath, Oregon
Posts: 23
TomThompson is an unknown quantity at this point
Re: There's a new version of the Cookbook posted

I successfully went through the posted instructions for installing the plug-in on a 32 bit XP machine. Everything seemed to work except I still don't see the option of adding a command or subsytem file to the project when I right click on the project. I get this when I use my Windows 7 machine but can't find the menu choice anywhere on the XP.

Tom Thompson
Reply With Quote
  #12   Spotlight this post!  
Unread 24-01-2012, 09:44
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: There's a new version of the Cookbook posted

Quote:
Originally Posted by TomThompson View Post
I get this when I use my Windows 7 machine but can't find the menu choice anywhere on the XP.
I also do no see the menu options for adding new subsystems, commands, etc. I guess we at least get the example project and can just copy paste the example classes and change the names (which is i guess all the menu options do for you anyway).
Reply With Quote
  #13   Spotlight this post!  
Unread 24-01-2012, 11:01
TomThompson TomThompson is offline
Registered User
FRC #0847
 
Join Date: Jan 2010
Location: Philomath, Oregon
Posts: 23
TomThompson is an unknown quantity at this point
Re: There's a new version of the Cookbook posted

Thanks for the verification. I thought I was losing my touch. We do have a backup plan but still struggling with errors that I think are related to Command.h. In the Gearsbot sample, this is included with the following:

#include "Commands/Command.h"

Since there is no Command.h in that folder, the build does not complete. I am wondering if it also did not get included in the WPILib since we are having problems with our software that might be the result of trying to inherit from Command.h. We have deleted the above include in our version of the software.

Tom Thompson
team 847
Reply With Quote
  #14   Spotlight this post!  
Unread 24-01-2012, 14:13
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: There's a new version of the Cookbook posted

It sounds like you may need to install the Workbench update. This includes the latest cRIO image and WPILib source code. You need this update whether you plan to use the Command based robot stuff or not (if you plan to use C++).

http://firstforge.wpi.edu/sf/frs/do/...h_update_v2993
Reply With Quote
  #15   Spotlight this post!  
Unread 25-01-2012, 01:15
TomThompson TomThompson is offline
Registered User
FRC #0847
 
Join Date: Jan 2010
Location: Philomath, Oregon
Posts: 23
TomThompson is an unknown quantity at this point
Re: There's a new version of the Cookbook posted

The updates were installed. I would be curious if anyone has actually gotten the command based sample to work properly in C++. It looks like it was originally developed and tested for Java but it is hard to tell. Anyway, we decided to move back to a more familiar method of employing OOP since this particular problem has just stalled the work. Maybe I will go back and explore the issue more when we have the luxury of time. I thank you all for responses.

Tom Thompson
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


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

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