RelativeAngularVelocity
Measure relative angular velocity between two frame connectors
Library
Modelica/Mechanics/MultiBody/Sensors
Description
The relative angular velocity between frame_a and frame_b isdetermined and provided at the output signal connector w_rel.
Via parameter resolveInFrame it is defined, in which framethe angular velocity is resolved:
resolveInFrame = Types.ResolveInFrameAB. | Meaning |
---|---|
world | Resolve vector in world frame |
frame_a | Resolve vector in frame_a |
frame_b | Resolve vector in frame_b |
frame_resolve | Resolve vector in frame_resolve |
In this basic sensor model, the connector frame_resolveis always enabled.If resolveInFrame = Types.ResolveInFrameAB.frame_resolve, the vector w_rel isresolved in the frame to which frame_resolve is connected.
Example
If resolveInFrame = Types.ResolveInFrameAB.frame_a, the output vector iscomputed as:
// Relative orientation object from frame_a to frame_bR_rel = MultiBody.Frames.relativeRotation(frame_a.R, frame_b.R);// Angular velocity resolved in frame_aw_rel = MultiBody.Frames.angularVelocity1(R_rel);
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_resolveInFrame | resolveInFrame | Frame in which output vector w_rel shall be resolved (world, frame_a, frame_b, or frame_resolve) | Structure | |
mo_resolveInFrame/choice1 | Resolve in world frame | Number | 0 | |
mo_resolveInFrame/choice2 | Resolve in frame_a | Number | 0 | |
mo_resolveInFrame/choice3 | Resolve in frame_b | Number | 0 | |
mo_resolveInFrame/choice4 | Resolve in frame_resolve (frame_resolve must be connected) | Number | 0 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
frame_a | implicit | Coordinate system a | input | 1 |
frame_b | implicit | Coordinate system b | output | 1 |
w_rel | implicit | Relative angular velocity vector between frame_a and frame_b resolved in frame defined by resolveInFrame | output | 2 |
Port 4 | implicit | Coordinate system in which w_rel is optionally resolved | output | mo_resolveInFrame.choice4 |