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

[Feature request] Enhancing RLidar #2167

Open
dduro2020 opened this issue Jan 9, 2025 · 0 comments
Open

[Feature request] Enhancing RLidar #2167

dduro2020 opened this issue Jan 9, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@dduro2020
Copy link
Contributor

Motivation

Right now the RLidar is returned with absolute coordinates and always from the same absolute orientation. Knowing this makes it easy to use, but I think it is impractical and unrealistic.

Proposal

It would be a good idea to return it in relative coordinates and taking into account the orientation of the vehicle.

Alternatives

For now I made a prototype inside smarts/env/gymnasium/wrappers/<agent>.py, I would like to add it where the RLidar rays are launched but from there I have not been able to access the agent's orientation.

Right now the logic is simple, first you pass them to relative coordinates and then using np.roll you move the array to match the orientation of the vehicle. This new array is stored in the observations dictionary and now the lidar measurements are 'filtered'.

Additional context

No response

@dduro2020 dduro2020 added the enhancement New feature or request label Jan 9, 2025
@dduro2020 dduro2020 changed the title [Feature request] [Feature request] Enhancing RLidar Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant