-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the Command Bus #45
Comments
You are correct, you can use the command bus in that manner. You can access To add your own commands, see the registration functions in the On Fri, 27 May 2016 10:48 Richard Apodaca [email protected] wrote:
|
Thanks for the quick response. In my project, I tried:
while the simulator was running (launched from Eclipse). I got back:
I get the same message regardless of the phase the simulator is in (Disabled, Autonomous, Teleop, Test). Do I need to configure my hosts file or change something else to make the roboRIO-1000-frc.local domain active?
Is that possible through Eclipse? If not, how would I run the project is such a way that I can enter commands through STDIN? |
Regarding the second point, I think I've found the answer. Just type commands into the bottom "Console" window in Eclipse (looks read-only, but it will take commands). Using the |
Yup, toastConsole is for a roborio connection. The eclipse console window On Fri, 27 May 2016 13:26 Richard Apodaca [email protected] wrote:
|
If you want to change inputs, you will need to write your own command. All On Fri, 27 May 2016 14:00 Jaci Brunning [email protected] wrote:
|
If you like, submit a pull request to Toast if you want to add the command On Fri, 27 May 2016 14:02 Jaci Brunning [email protected] wrote:
|
This makes a bit more sense now - thanks. I'm able to change values using the static setX methods on SimulationData. I'll look into making a few Commands. The ToastAPI document states: "For example, a team may use the CommandBus to define the layout of the Outer Works in the 2016 Stronghold Tournament (hint, hint)." That sounds intriguing, but I'm not sure I follow. Can you point me to a simple example that would illustrate using the Command Bus to define a "layout" of a game field? I'm somewhat familiar with Stronghold. Aside from what's outlined in the "Contributing to Toast" document, are there any requirements around unit tests or some other QA for pull requests? |
We used the CommandBus to set the outerworks layout this year in our code, but the change was later reverted in favour of a WebUI. The arguments passed to the There are no other requirements around contributing to Toast. I leave it with good faith in the community that if the initial travis build passes, and I give it a quick lookover that the PR is good to go. |
Section 8 (v2, rev 1) of the white paper talks about the "Command Bus":
http://www.chiefdelphi.com/media/papers/3174?langid=1
I'd like to cause inputs on the simulator to change through external manipulation so that my code can respond to those changes. It sounds like this is what the Command Bus can do, but it's not clear how to access it.
Two questions:
I've successfully installed ToastAPI on Ubuntu 16.04 using Eclipse, can run the simulator, and have written a few simple modules, all following the tutorials. But I'm new to programming the RoboRio, so it's possible I'm missing something obvious.
The text was updated successfully, but these errors were encountered: