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

General improvement of DynamicalSystem and implementation of FixedBaseDynamics #242

Merged
merged 17 commits into from
Mar 26, 2021

Conversation

GiulioRomualdi
Copy link
Member

@GiulioRomualdi GiulioRomualdi commented Mar 18, 2021

With this PR:

  • Integrators and DynamicalSystems are now in the ContinuousDynamicalSystem component
  • Enhance the CRPT in DynamicalSystem and Integrator
  • Remove useless include in TimeVaryingDCMPlanner.cpp
  • Implement FixedBaseDynamics class (@isorrentino you can use it to test Implement FixedBase inverse dynamics in TSID #230)

@@ -42,20 +65,10 @@ namespace System
* - Eigen::VectorXd: the joint velocities [in rad/s].
* - DynamicalSystem::InputType is described by an std::tuple containing:
* - Eigen::VectorXd: the joint torques [in Nm];
* - std::vector<ContactWrench>: List of contact wrenches.
* - std::vector<CompliantContactWrench>: List of contact wrenches.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the class name in the documentation needs to be updated?

Copy link
Collaborator

@prashanthr05 prashanthr05 left a comment

Choose a reason for hiding this comment

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

Minor comments.

}

m_knownCoefficent *= -1;
m_knownCoefficent.tail(m_actuatedDoFs) += jointTorques;
Copy link
Collaborator

Choose a reason for hiding this comment

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

add a comment here maybe, saying that jointTorques account for both internal and external stress?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I didn't understand your comment. Here actually we are interested only in the joint dynamics in case of zero external wrench applied on the system

Copy link
Collaborator

Choose a reason for hiding this comment

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

what I meant to say was to add a comment saying that J'f = 0 in this case.

Copy link
Collaborator

Choose a reason for hiding this comment

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

what I meant to say was to add a comment saying that J'f = 0 in this case, but clearly I wrote something else. ;D

@GiulioRomualdi
Copy link
Member Author

Hi @prashanthr05, in 95d596b I tried to improve the documentation of the classes

@prashanthr05
Copy link
Collaborator

Hi @prashanthr05, in 95d596b I tried to improve the documentation of the classes

Great, thanks @GiulioRomualdi !! It's a green flag from my side for this PR.

@GiulioRomualdi
Copy link
Member Author

@S-Dafarra let me know if you are fine with the PR 😃

* @param handler pointer to the parameter handler.
* @return true in case of success/false otherwise.
*/
bool initalize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);
Copy link
Member

Choose a reason for hiding this comment

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

Typo: initalize

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh noooooooooooooo 😢

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 84e69ad (The same for the others)

* | `gravity` | `double` | Value of the Gravity. If not defined Math::StandardAccelerationOfGravitation is used | No |
* @return true in case of success/false otherwise.
*/
bool initalize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);
Copy link
Member

Choose a reason for hiding this comment

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

Typo initalize

* | `rho` | `double` | Baumgarte stabilization parameter over the SO(3) group. The default value is 0.01 | No |
* @return true in case of success/false otherwise.
*/
bool initalize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);
Copy link
Member

Choose a reason for hiding this comment

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

Also here

* | `rho` | `double` | Baumgarte stabilization parameter over the SO(3) group. The default value is 0.01 | No |
* @return true in case of success/false otherwise.
*/
bool initalize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);
Copy link
Member

Choose a reason for hiding this comment

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

And here

@GiulioRomualdi GiulioRomualdi merged commit de3a3f8 into master Mar 26, 2021
@GiulioRomualdi GiulioRomualdi deleted the DynamicalSystem branch March 26, 2021 20:34
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