Skip to content

Commit bdb545b

Browse files
committed
pre-commit
Signed-off-by: Kacper Dąbrowski <kacper.dabrowski@robotec.ai>
1 parent a8ffea2 commit bdb545b

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

rai_app/agents/moveit2_agent.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,9 @@ def move_arm(self, request: MoveArm.Request, response: MoveArm.Response):
491491
response.success = False
492492
try:
493493
llm_response = self.llm.invoke(
494-
self.formulate_prompt("The arm failed to open the gripper.", str(e))
494+
self.formulate_prompt(
495+
"The arm failed to open the gripper.", str(e)
496+
)
495497
)
496498
response.report = llm_response.content
497499
except Exception:

rai_app/agents/nav2_agent.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ def navigate_to_pose(self, goal_handle: ServerGoalHandle) -> str:
169169
)
170170
action_result.report = response.content
171171
except Exception:
172-
action_result.report = f"Navigate to pose has failed with error code {enum_name}"
172+
action_result.report = (
173+
f"Navigate to pose has failed with error code {enum_name}"
174+
)
173175
return action_result
174176
else:
175177
action_result.success = False
@@ -227,7 +229,9 @@ def drive_on_heading(self, goal_handle: ServerGoalHandle):
227229
)
228230
action_result.report = response.content
229231
except Exception:
230-
action_result.report = f"Drive on heading has failed with error code {enum_name}"
232+
action_result.report = (
233+
f"Drive on heading has failed with error code {enum_name}"
234+
)
231235
return action_result
232236
else:
233237
action_result.success = False
@@ -337,7 +341,9 @@ def follow_waypoints(self, goal_handle: ServerGoalHandle):
337341
)
338342
action_result.report = response.content
339343
except Exception:
340-
action_result.report = f"Followed waypoints has failed with error code {enum_name}."
344+
action_result.report = (
345+
f"Followed waypoints has failed with error code {enum_name}."
346+
)
341347
return action_result
342348
else:
343349
action_result.success = False

0 commit comments

Comments
 (0)