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

Conversation

vtsamit
Copy link

@vtsamit vtsamit commented Mar 24, 2024

SOLVED ISSUE: NameError: name 'ListenerSpeedometer' is not defined

Screenshot from 2024-03-24 04-06-00

SOLVED ISSUE:
@sergiopaniego
Copy link
Member

Can you give more details about how to reproduce this error?
In sensors.py, that import is already covered

@vtsamit
Copy link
Author

vtsamit commented Mar 25, 2024

This error is produced when we run "python3 driver_carla.py -c configs/CARLA/default_carla.yml -g" in terminal.

Import "from robot.interfaces.speedometer import ListenerSpeedometer" is present in the sensors.py file.

But function "def get_speedometer()" is missing

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')

@sergiopaniego
Copy link
Member

Could you remove the duplicated import?

@vtsamit
Copy link
Author

vtsamit commented Mar 25, 2024

I have made the changes. Really sorry for adding the duplicate import. Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants