Skip to content

Commit

Permalink
Merge branch 'release/0.8.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain Bertrand committed Mar 17, 2021
2 parents 20abb09 + c2263ec commit cba8353
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

ihmc {
group = "us.ihmc"
version = "0.8.1"
version = "0.8.2"
vcsUrl = "https://github.com/ihmcrobotics/mecano"
openSource = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ public interface JointBasics extends JointReadOnly
void setJointWrench(JointReadOnly other);

/**
* Sets the joint current configuration from the given column vector {@code DMatrix}. Here
* are a few examples:
* Sets the joint current configuration from the given column vector {@code DMatrix}. Here are a few
* examples:
* <ul>
* <li>For a {@code RevoluteJoint}, the {@code rowStart}<sup>th</sup> row of the given column vector
* is used to set the current joint angle {@code q}.
Expand Down Expand Up @@ -742,6 +742,20 @@ default JointBasics[] subtreeArray()
return subtreeStream().toArray(JointBasics[]::new);
}

/**
* Updates {@code afterJointFrame} of this joint to take into consideration the new joint
* configuration and velocity.
* <p>
* This method only updates the frame for this joint, use {@link #updateFramesRecursively()} to
* update all reference frames in the subtree starting at this joint.
* </p>
*/
default void updateFrame()
{
getFrameBeforeJoint().update();
getFrameAfterJoint().update();
}

/**
* Updates {@code afterJointFrame} of this joint to take into consideration the new joint
* configuration. Then calls {@link RigidBody#updateFramesRecursively()} which in its turn updates
Expand All @@ -758,8 +772,7 @@ default JointBasics[] subtreeArray()
*/
default void updateFramesRecursively()
{
getFrameBeforeJoint().update();
getFrameAfterJoint().update();
updateFrame();

if (getSuccessor() != null)
{
Expand Down

0 comments on commit cba8353

Please sign in to comment.