Skip to content

Commit

Permalink
Update hardware_spawner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl authored Aug 14, 2024
1 parent 0487379 commit b32b363
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions controller_manager/controller_manager/hardware_spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@ def first_match(iterable, predicate):
return next((n for n in iterable if predicate(n)), None)


<<<<<<< HEAD
def wait_for_value_or(function, node, timeout, default, description):
while node.get_clock().now() < timeout:
result = function()
if result:
return result
node.get_logger().info(
f"Waiting for {description}", throttle_duration_sec=2, skip_first=True
)
time.sleep(0.2)
return default


=======
>>>>>>> af4b48f (Handle waiting in Spawner and align Hardware Spawner functionality (#1562))
def combine_name_and_namespace(name_and_namespace):
node_name, namespace = name_and_namespace
return namespace + ("" if namespace.endswith("/") else "/") + node_name
Expand Down

0 comments on commit b32b363

Please sign in to comment.