-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating OSX package
- Loading branch information
Showing
9 changed files
with
454 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
### Few documents to help you develop a custom client | ||
|
||
- [Writing a custom client](writing_custom_client.md) | ||
- [Controlling experiment](controlling_experiment.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Controlling experiment | ||
|
||
Server accepts commands through Websockets "message". | ||
|
||
Each message has the format, | ||
|
||
```json | ||
{ | ||
"command": "play", | ||
"...": "..." | ||
} | ||
``` | ||
The parameter `command` is mandatory, all others are command specific. | ||
|
||
|
||
### Play | ||
Command to start/play the experiment. | ||
|
||
```json | ||
{ "command": "play" } | ||
``` | ||
**Note:** It will not work if the state of experiment is `Playing`, `Fast-forwarding` or `Done`) | ||
|
||
### Pause | ||
Command to pause the experiment. | ||
|
||
```json | ||
{ "command": "pause" } | ||
``` | ||
**Note:** It will not work if the state of experiment is `Paused` or `Done`) | ||
|
||
|
||
### Step | ||
Command to run one step in the experiment. | ||
|
||
It will pause the experiment after one step is executed. | ||
```json | ||
{ "command": "step" } | ||
``` | ||
**Note:** It will not work if the state of experiment is `Done`). | ||
|
||
|
||
|
||
### Fast forward | ||
Command to Fastforward the experiment. | ||
|
||
```json | ||
{ | ||
"command": "fastforward", | ||
"steps": 10 | ||
} | ||
``` | ||
`steps` is optional, and defaults to value defined in experiment(.argos) file, like | ||
```xml | ||
<visualization> | ||
<webviz ff_draw_frames_every=10 /> | ||
</visualization> | ||
``` | ||
**Note:** It will not work if the state of experiment is `Fast-forwarding` or `Done`) | ||
|
||
### Reset | ||
Command to reset the experiment. | ||
|
||
```json | ||
{ "command": "reset" } | ||
``` | ||
|
Oops, something went wrong.