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

Implement AngularMomentum task in the IK component #443

Merged
merged 3 commits into from
Nov 8, 2021

Conversation

GiulioRomualdi
Copy link
Member

@GiulioRomualdi GiulioRomualdi commented Nov 8, 2021

This task can be used to control a desired angular momentum in the IK.

This can be useful to generate a swing motion of the arms when the robot is position control

  • bindings
  • CHANGELOG

Copy link
Collaborator

@traversaro traversaro 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.

src/IK/include/BipedalLocomotion/IK/AngularMomentumTask.h Outdated Show resolved Hide resolved

/**
* AngularMomentumTask is a concrete implementation of the IK::Task. Please use this element if you
* want to control the position and the orientation of a given frame rigidly attached to the robot.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy&paste docs?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I fixed the documentation

def test_angular_momentum_task():

# retrieve the model
model_url = 'https://raw.githubusercontent.com/robotology/icub-models/master/iCub/robots/iCubGazeboV2_5/model.urdf'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps you may want to get a fixed release to avoid that a change in icub-models breaks this test?

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 that as soon as we can start using pybind11 iDynTree bindings we can switch to iDynTree.get_random_chain(10)

Copy link
Collaborator

Choose a reason for hiding this comment

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

In that case, we need to remind to set a fixed seed.

* linear and angular velocity expressed in mixed representation and the joint velocities.
* The task represents the following equation
* \f[
* A_{cmm_\omega} \nu = {}^G[A} h_\omega ^*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure the correct fix, but G[A} probably needs to be fixed?

Copy link
Collaborator

@traversaro traversaro left a comment

Choose a reason for hiding this comment

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

Nitpick.

@GiulioRomualdi GiulioRomualdi merged commit 8ac8b10 into master Nov 8, 2021
@GiulioRomualdi GiulioRomualdi deleted the IK/AngularMomentum branch November 8, 2021 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants