We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e35ac0 commit 1a69d3aCopy full SHA for 1a69d3a
python_examples/ex06_async_nodes.py
@@ -37,13 +37,13 @@ def run(self):
37
start = np.asarray(self.get_input("start"))
38
goal = np.asarray(self.get_input("goal"))
39
40
- for t in np.linspace(0.0, 1.0, num=10):
+ t0 = time.time()
41
+ while (t := time.time() - t0) < 1.0:
42
command = (1.0 - t) * start + t * goal
43
self.set_output("command", command)
44
yield
45
46
print("Trajectory finished!")
-
47
return NodeStatus.SUCCESS
48
49
def on_halted(self):
0 commit comments