-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23c6e77
commit eb4972f
Showing
2 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# nodetest template | ||
|
||
Template for generating pure node testing packages. | ||
|
||
Relies on the testing tools provided by [rostest](http://wiki.ros.org/rostest). | ||
|
||
## XML specification | ||
|
||
The dictionary used in the xml specification is defined in [config/dictionary.html]. | ||
To generate an empty spec file, one can use: | ||
|
||
```shell | ||
rosrun package_generator generate_xml_skel nodetest filename.ros_package | ||
``` | ||
|
||
### Package attributes | ||
|
||
The required are the standard ones: `name`, `author`, `author_email`, `description`, `license` and `copyright`. | ||
|
||
### Component attributes | ||
|
||
Here a _component_ refers to a _node_ we want to test | ||
|
||
* `package`: package to which the node belongs to. | ||
* `name`: name of the node to test | ||
|
||
### Component interface | ||
|
||
**publisher**: to verify that a message is at least published once. | ||
|
||
* `name`: topic name to which the message is being published. | ||
|
||
**cyclicPublisher**: to verify a message is being published at a given frequency | ||
|
||
* `name`: topic name to which the message is being published. | ||
* `frequency`: expected publication frequency | ||
|
||
**dynParameter**: to verify a dynamic parameter is being defined by the component | ||
|
||
* `name`: name of the dynamic parameter |