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

[server] Apply abs when computing max_torque #153

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

orikuma
Copy link
Contributor

@orikuma orikuma commented Mar 26, 2021

Problem

Some robots have a negative gearRatio which indicates that the rotation of the motor is inverted by the transmission.
However, this makes max_torque negative (climit is guaranteed to be positive and torqueConst is assumed to be positive),
although max_torque is expected to be positive.

Solution

In this PR, std::abs is added when computing max_torque to make it positive.

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.

2 participants