From e3c08b332ba11fe28e83aadf5b7484d10b1aa8a7 Mon Sep 17 00:00:00 2001 From: Sebastian Castro Date: Fri, 30 Aug 2024 07:30:26 -0400 Subject: [PATCH] Fix tests --- pyrobosim/test/core/test_robot.py | 1 - pyrobosim_ros/pyrobosim_ros/ros_interface.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyrobosim/test/core/test_robot.py b/pyrobosim/test/core/test_robot.py index 37eda4a0..56770a67 100644 --- a/pyrobosim/test/core/test_robot.py +++ b/pyrobosim/test/core/test_robot.py @@ -219,7 +219,6 @@ def test_robot_nav_validation(self): ), ) robot.world = self.test_world - robot.location = "kitchen" # Plan a path. robot.set_pose(init_pose) diff --git a/pyrobosim_ros/pyrobosim_ros/ros_interface.py b/pyrobosim_ros/pyrobosim_ros/ros_interface.py index f8619a98..0036bf88 100644 --- a/pyrobosim_ros/pyrobosim_ros/ros_interface.py +++ b/pyrobosim_ros/pyrobosim_ros/ros_interface.py @@ -748,6 +748,11 @@ def set_location_state_callback(self, request, response): response.result = execution_result_to_ros(result) return response + # If the command is a no-op, count it as a success. + response.result.status = ExecutionResult.SUCCESS + response.result.message = "No action needed." + return response + def update_world_from_state_msg(world, msg): """