-
Notifications
You must be signed in to change notification settings - Fork 316
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
[SofaBoundaryCondition] make LinearMovementConstraint accept absolute movements #394
[SofaBoundaryCondition] make LinearMovementConstraint accept absolute movements #394
Conversation
Thank you for your pull request! |
Hi Raphael, Many thank for your pull request. EDIT: do you mind if I push some cleaning commit on this component in your PR. I would like to add some test cases for this component. |
Hi @raphaeldeimel, |
Shouldn't this code also be contained in a |
Another remark from SOFA-dev meeting: |
Remove commented cerr and rename Data relativeMovements to d_relativeMovements
I think the default value was misunderstood. |
@@ -248,24 +249,15 @@ template <class MyCoord> | |||
void LinearMovementConstraint<DataTypes>::interpolatePosition(Real cT, typename std::enable_if<!std::is_same<MyCoord, defaulttype::RigidCoord<3, Real> >::value, VecCoord>::type& x) | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From SOFA-dev meeting: shouldn't this function handle d_relativeMovements
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @raphaeldeimel :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're totally right ;)
@raphaeldeimel did you see my comment in |
[ci-build] |
This is small feature addition.
Currently, LinearMovementConstraint only takes trajectories relative to the rest position of the MechanicalState. Sometimes though, the trajectory is specified in world frame coordinates, and especially with Rigid3D (i.e. orientations), conversion is not trivial for the user
This patch introduces a switch "relativeMovements" (default true).
When disabled, trajectories can be specified in world frame coordinates.
This PR:
Reviewers will merge only if all these checks are true.