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

ERROR: Device 'gps' was not found on robot "e-puck" #6784

Open
omarsaudkhalid opened this issue Mar 1, 2025 · 2 comments
Open

ERROR: Device 'gps' was not found on robot "e-puck" #6784

omarsaudkhalid opened this issue Mar 1, 2025 · 2 comments

Comments

@omarsaudkhalid
Copy link

Describe the Bug
I am having an issue with webots. When I try writing the following I get an error: gps=robot.getDevice(‘gps’) The error is webots can’t find gps. I’m trying this on epuck robot on the simulator.

Steps to Reproduce

  1. Try compiling a controller that has the following line gps=robot.getDevice(‘gps’) obviosuly after including the relevant libraries and creating instance of Robot class

Expected behavior
Error: Device "gps" was not found on robot "e-puck"

Screenshots

Image

System

  • Operating System: [e.g., Windows 10]
  • Graphics Card: [NVIDIA GeForce MX 230]
  • Processor: [AMD Ryzen 5 3500U]
@rizqisubeno
Copy link

@omarsaudkhalid have you made sure you have added the device GPS on your e-puck robot ? if no then your device GPS cannot be connected sir.

@omarsaudkhalid
Copy link
Author

@rizqisubeno yes that was the mistake. I had assumed since epuck was on webots it would have GPS pre-equipped. Thanks

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

No branches or pull requests

2 participants