-
Notifications
You must be signed in to change notification settings - Fork 285
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
Hybrid dynamics #298
Merged
Merged
Hybrid dynamics #298
Conversation
This file contains 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
… require 4.7.0 or greater
jslee02
added
Comp: Dynamics
priority: medium
should be resolved before the next release
tag: feature request
Indicates new feature requests
labels
Jan 7, 2015
I found two things to be done:
|
The last commit contains following changes:
Waiting to pass build tests of Travis-CI and Appveyor. |
|
Ready to merge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
priority: medium
should be resolved before the next release
tag: feature request
Indicates new feature requests
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.
This pull request adds hybrid dynamics. In the hybrid dynamics problem, we are given either joint force or joint acceleration at each joint, and the task is to calculate the unknown accelerations and forces. In effect, hybrid dynamics is like performing forward dynamics at some of the joints and inverse dynamics at the rest. Hybrid dynamics is used to introduce prescribed motions into a rigid-body system. [1]
This pull request also introduces joint actuator types: force, passive, acceleration, and velocity (servo is not implemented yet). The hybrid dynamics performs forward dynamics for force and passive types, and inverse dynamics for acceleration and velocity types. Here is description on the command input and the output for each actuator types. The command can be set by calling
Joint::setCommand()
orSkeleton::setCommand()
.FORCE
: The command input is joint force, and the output is joint acceleration. If the command is always set to zero, then the force joint is identical to passive joint.PASSIVE
: The command input is joint force and always zero (ignore command from the user), and the output is joint acceleration.ACCELERATION
: The command input is joint acceleration, and the output is joint force.VELOCITY
: The command input is joint velocity, and the output is joint force.LOCKED
: Locked joint always set the velocity and acceleration to zero so that the joint doesn't move from the current position (locked), and the output is joint force.The joint actuator type can be specified by calling
Joint::setActuatorType()
. The default type is FORCE for backward compatibility.We define
FORCE
/PASSIVE
/SERVO
joints are dynamic joints whileACCELERATION
/VELOCITY
/LOCKED
joints are kinematic joints. (see also:Joint::isKinematic()
andJoint::isDynamic()
)Example app,
hybridDyanmics
is added, and basic unit tests are added as well.SkelParser
can parse the actuator type as an optional attribute of<joint>
. If it is not specified, force type is used as default. The description of the updated skel file format can be found at wiki. Here is an example of specifying joint actuator type:Minor changes:
JAVADOC_AUTOBRIEF
option of doxygenJoint::mWrench
castUIntToInt()
[1] Roy Featherstone, Rigid Body Dynamics Algorithms, Springer, New York, 2008.