function
RigidBody.wrenchPower
Supply rate for a body-frame wrench
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | state | RigidBody.State | | |
| input | wrench | RigidBody.Wrench | | |
| output | power | Real | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function wrenchPower "Supply rate for a body-frame wrench"
input RigidBody.State state;
input RigidBody.Wrench wrench;
output Real power;
algorithm
power := RigidBody.portPower(wrench, RigidBody.bodyTwist(state));
end wrenchPower;