Skip to content

Set CFM and ERP physics parameters for the four wheel joints.#243

Closed
darrenchurchill wants to merge 1 commit into
BCLab-UNM:masterfrom
darrenchurchill:sim-cfm-erp-patch
Closed

Set CFM and ERP physics parameters for the four wheel joints.#243
darrenchurchill wants to merge 1 commit into
BCLab-UNM:masterfrom
darrenchurchill:sim-cfm-erp-patch

Conversation

@darrenchurchill
Copy link
Copy Markdown
Contributor

This addresses issue #227.

I'm excited you're going to take a look at this.

I settled on a very small Constraint Force Mixing parameter (0.01), to soften the wheel joints slightly, and a greatly increased the Error Reduction Parameter (0.8), so the wheels move quickly back to their normal positions in just a few physics iterations if they get slightly out of place.

The CFM is small enough so there shouldn't be any 'suspension' effect or vibration in the model when it comes to a stop.

Let me know what you think.

This addresses issue BCLab-UNM#227.

Setting the wheel joints' Constraint Force Mixing parameters and Error Reduction Parameters to values different from their global defaults allows the rover to slowly in place without moving forward at the same time.

The CFM is set to slightly soften the wheel joints, and the ERP is set to quickly reduce any wheel joint errors that a softened joint can introduce.
@gmfricke
Copy link
Copy Markdown
Contributor

@kristiana-rendon and @Antonio-Griego please test this code in simulation and reply here. I'm excited that Darren has provided a templating method. You will be interested to look at the templating too, @johncarl81.

Copy link
Copy Markdown
Contributor

@gmfricke gmfricke left a comment

Choose a reason for hiding this comment

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

Thanks for sharing this. I have asked two of our team to test the changes. Assuming that goes well we will merge this,

gmfricke added a commit that referenced this pull request Jan 28, 2019
See PR #243. This pull request supersedes the earlier one since we are using templated model files now. Thanks to @darrenchurchill. 

"I settled on a very small Constraint Force Mixing parameter (0.01), to soften the wheel joints slightly, and a greatly increased the Error Reduction Parameter (0.8), so the wheels move quickly back to their normal positions in just a few physics iterations if they get slightly out of place.

The CFM is small enough so there shouldn't be any 'suspension' effect or vibration in the model when it comes to a stop."
@gmfricke gmfricke mentioned this pull request Jan 28, 2019
@darrenchurchill
Copy link
Copy Markdown
Contributor Author

@gmfricke I'm going to close this since #244 and #246 were merged. I'm happy you all liked both of the updates!

mike-matera pushed a commit to mike-matera/SwarmBaseCode-ROS that referenced this pull request Dec 31, 2019
See PR BCLab-UNM#243. This pull request supersedes the earlier one since we are using templated model files now. Thanks to @darrenchurchill. 

"I settled on a very small Constraint Force Mixing parameter (0.01), to soften the wheel joints slightly, and a greatly increased the Error Reduction Parameter (0.8), so the wheels move quickly back to their normal positions in just a few physics iterations if they get slightly out of place.

The CFM is small enough so there shouldn't be any 'suspension' effect or vibration in the model when it comes to a stop."
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.

4 participants