Change linear friction cone to ice cream cone#238
Merged
ManifoldFR merged 4 commits intoNov 4, 2024
Conversation
a1a4f0f to
b9eb358
Compare
ManifoldFR
reviewed
Oct 24, 2024
ManifoldFR
requested changes
Oct 24, 2024
| const RigidConstraintModelVector &, | ||
| const pinocchio::ProximalSettingsTpl<Scalar> &, | ||
| const context::Vector6s &, const std::string &>(bp::args( | ||
| const context::VectorXs &, const std::string &>(bp::args( |
Member
There was a problem hiding this comment.
I don't understand this change
Contributor
Author
There was a problem hiding this comment.
In this context, the reference force can be a 3D or 6D vector, depending on the type of contact. The bindings were not covering the 3D case.
Member
There was a problem hiding this comment.
Okay, so in this case, since at most it can be of dimension six, you could use the Eigen::Matrix template with maximum number of rows at compile time set to 6, in both the binding code and the actual C++ class:
using Vector3or6 = Eigen::Matrix<Scalar, -1, 1, 6>;The fourth template parameter is known in Eigen as MaxRowsAtCompileTime.
This allows us to avoid an unnecessary heap allocation in this case.
8aca851 to
bf5b70c
Compare
bf5b70c to
e080d61
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.