SuhrudhSarathy / xiron

A light weight 2D robot simulator written in Rust
https://suhrudhsarathy.github.io/xiron/
MIT License
4 stars 0 forks source link

Add support for objects with polygonal footprint #1

Closed SuhrudhSarathy closed 1 year ago

SuhrudhSarathy commented 1 year ago

Idea is to generalise the footprint of the robot to make it more customisable.

SuhrudhSarathy commented 1 year ago

Planned approach:

  1. Construct a trait called Robot that implements methods step, next, control etc.
  2. Take the footprint of the robot as a vector of (f32, f32) that ordered set of coords.
  3. Make changes in RobotConfig to support circular footprint.

This will also make it easy to add different drive types (unicycle, bicycle, Ackerman) etc.