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

Support for minimising the steering angle difference between previous and next angle #1

Open
wants to merge 1 commit into
base: swerve-drive
Choose a base branch
from

Conversation

roboticlemon
Copy link

This enhancement makes the controller behave optimally when selecting steering angles on continuous joint steering based robots.

To find the optimal angle to select we find the minimum angle difference between the previous angle position issued and either the calculated steering joint angle or it's polar opposite angle. When chosing the lesser difference we can gaurantee that the joint never moves more than π/2 radians per turn as opposed to the π radians per turn maxium in the current repo state.

More information on this can be found in this comment . I wasn't sure how we could make simple tests for this enhancement, we'd have to add another monitor to the test code that checks the joint_states prior and post command.

Let me know if you wan't any other work done, you can then merge my work into your existing ros-control pull request. We could also wait until your original code has passed but PR's take a very long time to get checked over so I thought it might be fast this way.

Cheers!

…sation that prevents continuous steering joints from moving more than a quatre turn. Modified the test yaml and added a description of the new param. Added new param enable_min_steering_difference to enable or disable this new functionality, default off.
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.

1 participant