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

[API] Motor Sim Overhaul #18

Merged

Conversation

oh-yes-0-fps
Copy link
Contributor

@oh-yes-0-fps oh-yes-0-fps commented Nov 5, 2024

Batteries Included Motor Sim!

The goal of this was to provide a motor sim api that is as easy to use as a motor in real life.

Features

  • PD Controller
  • Position, Velocity and Open Loop control
  • Voltage or Current based control
  • Current Limits
  • Feed Forward
  • Entire Public API is Unit Safe
  • Hard Stops

TODO

  • Improve Friction Math
  • Improve Current Limit Logic
  • Trapezoidal and Exponential Profiles
  • Adding arbitrary gravity forces

Merge Sooner Rather Than Later

I think having a minimum viable implementation in maple sim with the desired api sooner rather than later is better. All of the todo are modifying stuff the user doesn't touch or new features that wont break existing code using this class.

Copy link
Contributor

@GearBoxFox GearBoxFox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it, @catr1xLiu can give the final judgement and merge though.

@oh-yes-0-fps oh-yes-0-fps changed the title Motor Sim Overhaul [API] Motor Sim Overhaul Nov 5, 2024
@catr1xLiu catr1xLiu merged commit 9f48af6 into Shenzhen-Robotics-Alliance:main Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants