Skip to content
Snippets Groups Projects
Commit 73f038f0 authored by Tommy Persson's avatar Tommy Persson
Browse files

Adding loop-sel node executor.

parent 87ecbc93
Branches
No related tags found
No related merge requests found
Pipeline #58408 passed
...@@ -96,7 +96,7 @@ def wtogp (x, y, z): ...@@ -96,7 +96,7 @@ def wtogp (x, y, z):
return gc.point_to_geo_point (get_point_stamped (x, y, z, "world")) return gc.point_to_geo_point (get_point_stamped (x, y, z, "world"))
def takeoff(ns, unit): def takeoff(ns, unit):
inair = Node("in-air-goal", {"execunit": unit}) inair = Node("in-air-goal", {"execunit": unit, "height-above-takeoff": 8.0})
# inair = Node("in-air-goal", {"execunit": unit, "height-above-takeoff": 30.0}) # inair = Node("in-air-goal", {"execunit": unit, "height-above-takeoff": 30.0})
# tree = Node("seq", {"execunit": unit}, [inair]) # tree = Node("seq", {"execunit": unit}, [inair])
tree = Node("seq", {"execunit": ns}, [inair]) tree = Node("seq", {"execunit": ns}, [inair])
...@@ -115,7 +115,7 @@ def throw_takeoff(ns, unit): ...@@ -115,7 +115,7 @@ def throw_takeoff(ns, unit):
return (res, reason, timing) return (res, reason, timing)
def land(ns, unit): def land(ns, unit):
land = Node("land", {"execunit": unit}) land = Node("land", {"execunit": unit, "z": 1.3})
tree = Node("seq", {"execunit": unit}, [land]) tree = Node("seq", {"execunit": unit}, [land])
mo = MissionObject("land", ns, options.display, options.verbose) mo = MissionObject("land", ns, options.display, options.verbose)
(res, reason, timing) = mo.delegation_process(tree, options.exectree) (res, reason, timing) = mo.delegation_process(tree, options.exectree)
...@@ -430,7 +430,7 @@ def gesture_test(ns, unit): ...@@ -430,7 +430,7 @@ def gesture_test(ns, unit):
inair = Node("in-air-goal", {"execunit": unit, "height-above-takeoff": 8.0}) inair = Node("in-air-goal", {"execunit": unit, "height-above-takeoff": 8.0})
noop1 = Node("no-op", {"execunit": unit}) noop1 = Node("no-op", {"execunit": unit})
noop2 = Node("no-op", {"execunit": unit}) noop2 = Node("no-op", {"execunit": unit})
land = Node("land", {"execunit": unit}) land = Node("land", {"execunit": unit, "z": 1.3})
gohome = Node("go-home", {"execunit": unit}) gohome = Node("go-home", {"execunit": unit})
try_node = Node("try", {"execunit": unit}) try_node = Node("try", {"execunit": unit})
try_node.add_child(land) try_node.add_child(land)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment