forked from morse-simulator/morse
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added man pages for each of the morse subcommands
- Loading branch information
Séverin Lemaignan
authored and
Arnaud Degroote
committed
Apr 10, 2013
1 parent
987162b
commit 5cca82b
Showing
9 changed files
with
266 additions
and
36 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 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,35 @@ | ||
:orphan: | ||
|
||
morse add manual page | ||
===================== | ||
|
||
Synopsis | ||
-------- | ||
|
||
**morse add** [-h] [-f] {robot,sensor,actuator} name env | ||
|
||
Description | ||
----------- | ||
|
||
Adds templates for a new component (sensor, actuator, robot) | ||
to an existing simulation environment. | ||
|
||
This component is meant to be a starting point for writing our own | ||
custom components. | ||
|
||
Options | ||
------- | ||
|
||
:{robot,sensor,actuator}: | ||
the type of component you want to add. | ||
:name: the name of the new component. | ||
:env: the environment where to add. | ||
|
||
:-h, --help: show this help message and exit | ||
:-f, --force: forces the creation (possibly overwriting files). | ||
|
||
Refer to :manpage:`morse(1)` for global MORSE options. | ||
|
||
See Also | ||
-------- | ||
:manpage:`morse(1)` |
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,21 @@ | ||
:orphan: | ||
|
||
morse check manual page | ||
======================= | ||
|
||
Synopsis | ||
-------- | ||
|
||
**morse check** | ||
|
||
Description | ||
----------- | ||
|
||
This command checks that your MORSE installation is correct. | ||
|
||
In particular, it verifies that the Blender version and the Python | ||
version are supported. | ||
|
||
See Also | ||
-------- | ||
:manpage:`morse(1)` |
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,24 @@ | ||
:orphan: | ||
|
||
morse create manual page | ||
======================== | ||
|
||
Synopsis | ||
-------- | ||
|
||
**morse create** [-h] [-f] env | ||
|
||
|
||
Options | ||
------- | ||
|
||
:env: the name of the environment to create. | ||
|
||
:-h, --help: show this help message and exit | ||
:-f, --force: forces the creation (possibly overwriting files). | ||
|
||
Refer to :manpage:`morse(1)` for global MORSE options. | ||
|
||
See Also | ||
-------- | ||
:manpage:`morse(1)` |
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,43 @@ | ||
:orphan: | ||
|
||
morse edit manual page | ||
====================== | ||
|
||
Synopsis | ||
-------- | ||
|
||
**morse edit** [-h] [-b BASE] [--name NAME] [-g GEOM] [env] [file] [pyoptions...] | ||
|
||
Description | ||
----------- | ||
|
||
Open the given Blender scene or Python script in the Blender | ||
interface for edition. The simulation can be started by | ||
pressing P. | ||
|
||
Options | ||
------- | ||
|
||
:env: the simulation environment to edit. | ||
:file: the exact scene (.py or .blend) to edit (if 'env' is | ||
given, within this environment). | ||
See section FILE RESOLUTION of :manpage:`morse-run(1)` for details. | ||
:pyoptions: optional parameters, passed to the Blender python | ||
engine in sys.argv | ||
|
||
:-h, --help: show this help message and exit | ||
:-b BASE, --base BASE: specify a Blender scene used as base to apply the | ||
Python script. | ||
:--name NAME: when running in multi-node mode, sets the name of this | ||
node (defaults to either MORSE_NODE if defined or | ||
current hostname). | ||
:-g GEOM, --geometry GEOM: | ||
sets the simulator window geometry. Expected format: | ||
WxH or WxH+dx,dy to set an initial x,y delta (from | ||
lower left corner). | ||
|
||
Refer to :manpage:`morse(1)` for global MORSE options. | ||
|
||
See Also | ||
-------- | ||
:manpage:`morse(1)` |
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,28 @@ | ||
:orphan: | ||
|
||
morse rm manual page | ||
===================== | ||
|
||
Synopsis | ||
-------- | ||
|
||
**morse rm** [-h] [-f] env | ||
|
||
Description | ||
----------- | ||
|
||
Deletes an existing simulation environment. | ||
|
||
Options | ||
------- | ||
|
||
:env: the environment to delete. | ||
|
||
:-h, --help: show this help message and exit | ||
:-f, --force: silently delete. | ||
|
||
Refer to :manpage:`morse(1)` for global MORSE options. | ||
|
||
See Also | ||
-------- | ||
:manpage:`morse(1)` |
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,74 @@ | ||
:orphan: | ||
|
||
morse run manual page | ||
===================== | ||
|
||
Synopsis | ||
-------- | ||
|
||
**morse run** [-h] [--name NAME] [-g GEOM] [env] [file] [pyoptions...] | ||
|
||
Description | ||
----------- | ||
|
||
Runs a simulation (must be a Python script) without loading | ||
the Blender interface. | ||
|
||
Options | ||
------- | ||
|
||
:env: | ||
the simulation environment to run. | ||
:file: | ||
the exact scene (.py or .blend) to run (if 'env' is | ||
given, within this environment). | ||
See section FILE RESOLUTION below for details. | ||
|
||
:pyoptions: | ||
optional parameters, passed to the Blender python | ||
engine in sys.argv | ||
:-h, --help: | ||
show this help message and exit | ||
|
||
:--name NAME: | ||
when running in multi-node mode, sets the name of this | ||
node (defaults to either MORSE_NODE if defined or | ||
current hostname). | ||
:-g GEOM, --geometry GEOM: | ||
sets the simulator window geometry. Expected format: | ||
WxH or WxH+dx,dy to set an initial x,y delta (from | ||
lower left corner). | ||
|
||
Refer to :manpage:`morse(1)` for global MORSE options. | ||
|
||
File Resolution | ||
--------------- | ||
|
||
MORSE tries to figure out which simulation you want to open with the following strategy: | ||
|
||
|
||
**If only one parameter *arg* is given:** | ||
|
||
- if *arg* is a configured simulation environment with prefix $ENVROOT: | ||
- if *$ENVROOT/default.py* exists, launch it. | ||
- else, if any file with an extension {.py|.blend} exists, launch the first | ||
one (in alphanumerical order) | ||
- else if a file called *arg* exists in the current directory, launch it. | ||
- else, fail | ||
- else check if a file called *arg* exists, and launch it (note that in that | ||
case, *arg* can contain an absolute path or a path relative to the current | ||
directory). | ||
|
||
**If two parameters *arg1* and *arg2* are given:** | ||
|
||
- if *arg1* is a configured simulation environment with prefix $ENVROOT: | ||
- if *$ENVROOT/arg2* exists, launch it | ||
- else, add $ENVROOT to MORSE environment, and if *arg2* exists, launch it (note | ||
that *arg2* can contain an absolute path or a path relative to the current | ||
directory) | ||
- else fail | ||
|
||
|
||
See Also | ||
-------- | ||
:manpage:`morse(1)` |
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