Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   There's a new version of the Cookbook posted (http://www.chiefdelphi.com/forums/showthread.php?t=99678)

BradAMiller 01-09-2012 10:45 PM

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

slibert 01-16-2012 12:14 PM

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

slibert 01-17-2012 12:29 AM

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

SpikeyBot293 01-17-2012 05:19 PM

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

emusteve 01-17-2012 09:00 PM

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

SPatel94 01-22-2012 08:41 PM

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

TomThompson 01-22-2012 09:01 PM

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

bob.wolff68 01-23-2012 02:25 AM

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

jwakeman 01-23-2012 10:11 AM

Re: There's a new version of the Cookbook posted
 
1 Attachment(s)
Quote:

Originally Posted by bob.wolff68 (Post 1111689)
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.

bob.wolff68 01-23-2012 09:21 PM

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

TomThompson 01-24-2012 01:06 AM

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

jwakeman 01-24-2012 09:44 AM

Re: There's a new version of the Cookbook posted
 
Quote:

Originally Posted by TomThompson (Post 1112459)
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).

TomThompson 01-24-2012 11:01 AM

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

jwakeman 01-24-2012 02:13 PM

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

TomThompson 01-25-2012 01:15 AM

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


All times are GMT -5. The time now is 09:39 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi