No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 0.0.1
License Apache 2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ipa320/cob_command_tools.git
VCS Type git
VCS Version indigo_dev
Last Updated 2020-02-03
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Package Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The scenario_test_tools package implements helpers for scriptable scenario testing. It allows to set up a test harness for eg. a state machine or other high level behavior by providing mocked implementations for various action servers and services that work together

Additional Links

No additional links.

Maintainers

  • Loy van Beek

Authors

  • Loy van Beek

Automated testing

The automated tests in scenario_test_tools provide a basic framework for mocked, scriptable and introspectable ROS services and action servers. These are operated from the same process so they can offer a correct, integral mock for various aspects of the robot. This allows to guide the high-level behavior into edge-cases and verify they are handled as intended.

The core idea is that a tests specifies a sequence of services/actions that the behavior should call. A test can inspect the request/goal and reply with e.g. success or failure and then check if the failure is handled correctly etc.

Framework

The core of the framework is the ScriptableBase, on which ScriptableActionserver and ScriptableServiceServer are based.

ScriptableBase allows to - introspect past goals via received_goals. This is simply an list of all received goals. - This can be combined with the remember_goals context manager, which makes goals be forgotten before entering the context and after exiting again. Useful when you have multiple tests in sequence. - set the next result to a to-be-received goal with the reply method. There are several similar methods: - reply_conditionally: which takes a callable that returns True or False based on the goal and sends back the corresponding result - await_goal + reply_directly. await_goal blocks and returns a goal once it's received, so the goal can be inspected. Based on that, specify the reply with reply_directly. - Set default results via default_result without bothering with reply* most of the time, e.g for actions that are expected to always success on the real robot, eg. for doing text-to-speech. If you want to override temporarily, use this syntax:

  with scriptable_thing.custom_reply():
      scriptable_thing.reply(SomeActionResult('non-default'))

Examples

The scripts directory contains 2 scripts: example_test.py and dummy_behavior.py. The dummy behavior is tested with the example test, which uses a reasonable subset of the features in the framework.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged scenario_test_tools at answers.ros.org

Package Summary

Tags No category tags.
Version 0.0.1
License Apache 2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ipa320/cob_command_tools.git
VCS Type git
VCS Version indigo_dev
Last Updated 2020-02-03
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Package Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The scenario_test_tools package implements helpers for scriptable scenario testing. It allows to set up a test harness for eg. a state machine or other high level behavior by providing mocked implementations for various action servers and services that work together

Additional Links

No additional links.

Maintainers

  • Loy van Beek

Authors

  • Loy van Beek

Automated testing

The automated tests in scenario_test_tools provide a basic framework for mocked, scriptable and introspectable ROS services and action servers. These are operated from the same process so they can offer a correct, integral mock for various aspects of the robot. This allows to guide the high-level behavior into edge-cases and verify they are handled as intended.

The core idea is that a tests specifies a sequence of services/actions that the behavior should call. A test can inspect the request/goal and reply with e.g. success or failure and then check if the failure is handled correctly etc.

Framework

The core of the framework is the ScriptableBase, on which ScriptableActionserver and ScriptableServiceServer are based.

ScriptableBase allows to - introspect past goals via received_goals. This is simply an list of all received goals. - This can be combined with the remember_goals context manager, which makes goals be forgotten before entering the context and after exiting again. Useful when you have multiple tests in sequence. - set the next result to a to-be-received goal with the reply method. There are several similar methods: - reply_conditionally: which takes a callable that returns True or False based on the goal and sends back the corresponding result - await_goal + reply_directly. await_goal blocks and returns a goal once it's received, so the goal can be inspected. Based on that, specify the reply with reply_directly. - Set default results via default_result without bothering with reply* most of the time, e.g for actions that are expected to always success on the real robot, eg. for doing text-to-speech. If you want to override temporarily, use this syntax:

  with scriptable_thing.custom_reply():
      scriptable_thing.reply(SomeActionResult('non-default'))

Examples

The scripts directory contains 2 scripts: example_test.py and dummy_behavior.py. The dummy behavior is tested with the example test, which uses a reasonable subset of the features in the framework.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged scenario_test_tools at answers.ros.org

No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 0.0.1
License Apache 2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ipa320/cob_command_tools.git
VCS Type git
VCS Version indigo_dev
Last Updated 2020-02-03
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Package Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The scenario_test_tools package implements helpers for scriptable scenario testing. It allows to set up a test harness for eg. a state machine or other high level behavior by providing mocked implementations for various action servers and services that work together

Additional Links

No additional links.

Maintainers

  • Loy van Beek

Authors

  • Loy van Beek

Automated testing

The automated tests in scenario_test_tools provide a basic framework for mocked, scriptable and introspectable ROS services and action servers. These are operated from the same process so they can offer a correct, integral mock for various aspects of the robot. This allows to guide the high-level behavior into edge-cases and verify they are handled as intended.

The core idea is that a tests specifies a sequence of services/actions that the behavior should call. A test can inspect the request/goal and reply with e.g. success or failure and then check if the failure is handled correctly etc.

Framework

The core of the framework is the ScriptableBase, on which ScriptableActionserver and ScriptableServiceServer are based.

ScriptableBase allows to - introspect past goals via received_goals. This is simply an list of all received goals. - This can be combined with the remember_goals context manager, which makes goals be forgotten before entering the context and after exiting again. Useful when you have multiple tests in sequence. - set the next result to a to-be-received goal with the reply method. There are several similar methods: - reply_conditionally: which takes a callable that returns True or False based on the goal and sends back the corresponding result - await_goal + reply_directly. await_goal blocks and returns a goal once it's received, so the goal can be inspected. Based on that, specify the reply with reply_directly. - Set default results via default_result without bothering with reply* most of the time, e.g for actions that are expected to always success on the real robot, eg. for doing text-to-speech. If you want to override temporarily, use this syntax:

  with scriptable_thing.custom_reply():
      scriptable_thing.reply(SomeActionResult('non-default'))

Examples

The scripts directory contains 2 scripts: example_test.py and dummy_behavior.py. The dummy behavior is tested with the example test, which uses a reasonable subset of the features in the framework.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged scenario_test_tools at answers.ros.org

No version for distro hydro. Known supported distros are highlighted in the buttons above.