Skip to content

[Feature request] Enhancing RLidar #2167

@dduro2020

Description

@dduro2020

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions