Skip to content

Odometry library #235

Closed
Closed

Description

Activity

  1. WasabiFan commented on Oct 24, 2016

    @WasabiFan
    Member

    Yeah, that seems interesting; and it could definitely be useful for beginners (it is, after all, intended for that audience). I find it funny how it was inspired by ev3dev projects, then implemented in EV3-G, and now we are going to translate it to ev3dev code again 😆

  2. self-assigned this
    on Nov 6, 2016
  3. dwalton76 commented on Aug 6, 2018

    @dwalton76
    CollaboratorAuthor

    It has been almost 2 years and I haven't even started on this one. I am going to close it and we can re-open if someone wants to work on it.

  4. removed their assignment
    on Aug 6, 2018
  5. self-assigned this
    on Nov 7, 2018
  6. dwalton76 commented on Nov 7, 2018

    @dwalton76
    CollaboratorAuthor

    Now that MoveDifferential and DistanceValue classes are in, work can begin on odometry. @WasabiFan @ddemidov thoughts on what the API for this should look like? I think most changes we make will need to be in the MoveDifferential class as that is the only place we know the wheel dimensions and spacing needed to do the calculations.

    It could be as simple as passing a use_gyro_for_accuracy bool to

    • on_for_distance
    • turn_right
    • turn_left
    • on_arc_right/on_arc_left I need to give this one some thought

    Is there anything we want to do for the case where a gyro is not available? MoveDifferential is already providing some basic odometry. I can update it to use the new DistanceValue classes but beyond that I can't think of anything else to add for a non-gyro scenario.

  7. dwalton76 commented on Nov 7, 2018

    @dwalton76
    CollaboratorAuthor

    One big use case for this could be First Lego League.

  8. WasabiFan commented on Nov 7, 2018

    @WasabiFan
    Member

    I think that makes sense. The main things you want to do which are odometry-backed are going straight and doing a circular turn.

  9. dwalton76 commented on Apr 6, 2019

    @dwalton76
    CollaboratorAuthor

    Doing some research on this...the ev3dev project that was the source of inspiration for the EV3-G implementation was https://www.ev3dev.org/projects/2016/08/07/Mapping/

    This chunk of code reads the motor positions periodically and sends those (plus the timestamp) to some other program via a UDP socket
    https://github.com/bmegli/ev3dev-mapping-modules/blob/master/ev3odometry/main.cpp

    Not sure yet what code it is sending that data to though

  10. dwalton76 commented on Apr 6, 2019

    @dwalton76
    CollaboratorAuthor
  11. WasabiFan commented on Apr 7, 2019

    @WasabiFan
    Member

    👍 I've developed odometry systems in the past, so I have a pretty good idea of what goes into this. For encoder-only tracking, it's really just doing the kinematics math. If you have an IMU, you'd typically throw that into the mix via a Kalman filter (probably just constant-velocity in our case, I doubt introducing acceleration would matter much). But initially, the tracking is really just some trig for a rigid body. It looks like that source includes all the needed calculations for that.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions