From 980e94c4dbd4623ede6fe83437cb5230f7d487ed Mon Sep 17 00:00:00 2001 From: Amitesh Vatsa Date: Sun, 24 Mar 2024 15:08:31 +0530 Subject: [PATCH 1/3] Update sensors.py SOLVED ISSUE: --- behavior_metrics/robot/sensors.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/behavior_metrics/robot/sensors.py b/behavior_metrics/robot/sensors.py index 8d71cc5d..bded6ff8 100644 --- a/behavior_metrics/robot/sensors.py +++ b/behavior_metrics/robot/sensors.py @@ -16,6 +16,7 @@ from robot.interfaces.camera import ListenerCamera from robot.interfaces.laser import ListenerLaser from robot.interfaces.pose3d import ListenerPose3d +from robot.interfaces.speedometer import ListenerSpeedometer try: from robot.interfaces.birdeyeview import BirdEyeView except ModuleNotFoundError as ex: @@ -155,6 +156,15 @@ def get_bird_eye_view(self, bird_eye_view_name): """ return self.__get_sensor(bird_eye_view_name, 'bird_eye_view') + def get_speedometer(self, speedometer_name): + """Retrieve an specific existing speedometer sensor + Arguments: + speedometer_name {str} -- Name of the speedometer to be retrieved + Returns: + robot.interfaces.speedometer.ListenerSpeedometer instance -- speedometer instance + """ + return self.__get_sensor(speedometer_name, 'speedometer') + def kill(self): """Destroy all the running sensors""" if self.cameras: From 8067e0749a0ed1ff1aaf017b3bc3231b9ffa57be Mon Sep 17 00:00:00 2001 From: Amitesh Vatsa Date: Tue, 26 Mar 2024 01:00:48 +0530 Subject: [PATCH 2/3] Update sensors.py --- behavior_metrics/robot/sensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/behavior_metrics/robot/sensors.py b/behavior_metrics/robot/sensors.py index bded6ff8..e59f147b 100644 --- a/behavior_metrics/robot/sensors.py +++ b/behavior_metrics/robot/sensors.py @@ -16,7 +16,7 @@ from robot.interfaces.camera import ListenerCamera from robot.interfaces.laser import ListenerLaser from robot.interfaces.pose3d import ListenerPose3d -from robot.interfaces.speedometer import ListenerSpeedometer + try: from robot.interfaces.birdeyeview import BirdEyeView except ModuleNotFoundError as ex: From 1ddfe8ad40b6f6758796d4cadb7539a1658e8229 Mon Sep 17 00:00:00 2001 From: Amitesh Vatsa Date: Tue, 26 Mar 2024 01:01:35 +0530 Subject: [PATCH 3/3] Update sensors.py --- behavior_metrics/robot/sensors.py | 1 - 1 file changed, 1 deletion(-) diff --git a/behavior_metrics/robot/sensors.py b/behavior_metrics/robot/sensors.py index e59f147b..9d625dd5 100644 --- a/behavior_metrics/robot/sensors.py +++ b/behavior_metrics/robot/sensors.py @@ -16,7 +16,6 @@ from robot.interfaces.camera import ListenerCamera from robot.interfaces.laser import ListenerLaser from robot.interfaces.pose3d import ListenerPose3d - try: from robot.interfaces.birdeyeview import BirdEyeView except ModuleNotFoundError as ex: