Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sensors.py #676

Open
wants to merge 3 commits into
base: noetic-devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions behavior_metrics/robot/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,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:
Expand Down