Skip to content

Commit

Permalink
restored the print().
Browse files Browse the repository at this point in the history
  • Loading branch information
DoppiaEffe94 committed Aug 9, 2024
1 parent 0bda608 commit cb2eddc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __init__(self,
def next_cmd_id(self):
self.current_cmd_id = self.current_cmd_id + 1
if self.debug:
self.node.get_logger().info(f'Issuing cmd_id for {self.name}: {self.current_cmd_id}')
print(f'Issuing cmd_id for {self.name}: {self.current_cmd_id}')
return self.current_cmd_id

def sleep_for(self, seconds):
Expand All @@ -194,7 +194,7 @@ def clear(self):

def interrupt(self):
if self.debug:
self.node.get_logger().info(
print(
f'Interrupting {self.name} '
f'(latest cmd_id is {self.current_cmd_id})'
)
Expand All @@ -217,7 +217,7 @@ def interrupt(self):
def stop(self):
if self.debug:
plan_id = self.update_handle.unstable_current_plan_id()
self.node.get_logger().info(f'stop for {self.name} with PlanId {plan_id}')
print(f'stop for {self.name} with PlanId {plan_id}')

self.interrupt()
# Stop the robot. Tracking variables should remain unchanged.
Expand Down Expand Up @@ -256,7 +256,7 @@ def follow_new_path(
path_finished_callback):
if self.debug:
plan_id = self.update_handle.unstable_current_plan_id()
self.node.get_logger().info(f'follow_new_path for {self.name} with PlanId {plan_id}')
print(f'follow_new_path for {self.name} with PlanId {plan_id}')
self.interrupt()
with self._lock:
self._follow_path_thread = None
Expand Down

0 comments on commit cb2eddc

Please sign in to comment.