-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBtSelector.m
More file actions
33 lines (23 loc) · 757 Bytes
/
BtSelector.m
File metadata and controls
33 lines (23 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
classdef BtSelector < BtParent
methods
function obj = BtSelector(varargin)
obj = obj@BtParent(varargin{:});
end
function resp = do_task(obj)
for ii=1:obj.num_children,
this_resp = obj.children{ii}.tick;
if this_resp.is_success,
resp = this_resp;
return
elseif this_resp.is_running,
resp = this_resp;
return
end
resp = BtrFailure;
end
end
function str = plot_str(obj)
str = ' ? ';
end
end
end