SMARTS icon indicating copy to clipboard operation
SMARTS copied to clipboard

[Feature request] Enhancing RLidar

Open dduro2020 opened this issue 1 year ago • 0 comments

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 avatar Jan 09 '25 11:01 dduro2020