2022-11-01 20:31:22 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2023-11-15 14:40:07 +00:00
|
|
|
<class name="BTTimeLimit" inherits="BTDecorator" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
2022-11-01 20:31:22 +00:00
|
|
|
<brief_description>
|
2023-10-16 12:20:45 +00:00
|
|
|
BT decorator that sets a time limit for its child's execution.
|
2022-11-01 20:31:22 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2023-10-17 10:22:46 +00:00
|
|
|
BTTimeLimit allocates a limited time for the child's execution and aborts it, returning [code]FAILURE[/code] if the [member time_limit] is exceeded.
|
2023-10-16 12:20:45 +00:00
|
|
|
Returns [code]FAILURE[/code] if the [member time_limit] is exceeded; otherwise, it returns the status of the child task.
|
2022-11-01 20:31:22 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<members>
|
|
|
|
<member name="time_limit" type="float" setter="set_time_limit" getter="get_time_limit" default="5.0">
|
2023-10-16 12:20:45 +00:00
|
|
|
Time allocated for the child task's execution.
|
2022-11-01 20:31:22 +00:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
</class>
|