Skip to content

Commit

Permalink
uncrustify and flake8 (ros-navigation#4341)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Wake <macwake@gmail.com>
  • Loading branch information
ewak committed Feb 11, 2025
1 parent 74a1943 commit eaa0df5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions nav2_system_tests/src/behavior_tree/dummy_action_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ class DummyActionServer
return std::make_shared<typename ActionT::Result>();
}

virtual void updateResultForFailure(std::shared_ptr<typename ActionT::Result> &result)
virtual void updateResultForFailure(std::shared_ptr<typename ActionT::Result> & result)
{
result->error_code = ActionT::Result::UNKNOWN;
result->error_msg = "Unknown Failure";
}

virtual void updateResultForSuccess(std::shared_ptr<typename ActionT::Result> &result)
virtual void updateResultForSuccess(std::shared_ptr<typename ActionT::Result> & result)
{
result->error_code = ActionT::Result::NONE;
result->error_msg = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ def runNavigateAction(self,
if (result.error_code == expected_error_code and
result.error_msg == expected_error_msg):
self.info_msg(f'Goal failed as expected with status code: {status}'
f' error code:{result.error_code}'
f' error msg:{result.error_msg}')
f' error code:{result.error_code}'
f' error msg:{result.error_msg}')
return True
else:
self.error_msg(f'Goal failed unexpectedly with status code: {status}'
f' Expected error_code:{expected_error_code},'
f' Got error_code:{result.error_code},'
f' Expected error_msg:{expected_error_msg},'
f' Got error_msg:{result.error_msg}')
f' Expected error_code:{expected_error_code},'
f' Got error_code:{result.error_code},'
f' Expected error_msg:{expected_error_msg},'
f' Got error_msg:{result.error_msg}')
return False

self.info_msg('Goal succeeded!')
Expand Down Expand Up @@ -228,7 +228,7 @@ def run_all_tests(robot_tester):

result = robot_tester.runNavigateAction(
goal_pose=pose_out_of_bounds,
behavior_tree="",
behavior_tree='',
expected_error_code=304,
expected_error_msg=('GridBasedplugin failed to plan from '
'(-2.00, -0.50) to (2000.00, 4000.00): '
Expand All @@ -237,7 +237,7 @@ def run_all_tests(robot_tester):
if result:
result = robot_tester.runNavigateAction(
goal_pose=pose_out_of_bounds,
behavior_tree="behavior_tree_that_does_not_exist.xml",
behavior_tree='behavior_tree_that_does_not_exist.xml',
expected_error_code=901,
expected_error_msg=('Error loading XML file: behavior_tree_that_does_not_exist.xml. '
'Navigation canceled.'))
Expand Down

0 comments on commit eaa0df5

Please sign in to comment.