Skip to content

Commit d03849f

Browse files
committed
improve some docstrings
1 parent ab0f595 commit d03849f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/components.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ purple = [0.5019608f0,0.0f0,0.5019608f0,1.0f0]
1111
"""
1212
ori(frame, varw = false)
1313
14-
Get the orientation of `sys` as a `RotationMatrix` object.
14+
Get the orientation of `sys` as a `RotationMatrix` object. See also [`get_rot`](@ref). `ori(frame).R` is the rotation matrix that rotates a vector from the world coordinate system to the local frame.
1515
1616
For frames, the orientation is stored in the metadata field of the system as `sys.metadata[:orientation]`.
1717

src/frames.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ The `Frame` connector has internal variables for
3333
- `r_0`: The position vector from the world frame to the frame origin, resolved in the world frame
3434
- `f`: The cut force resolved in the connector frame
3535
- `tau`: The cut torque resolved in the connector frame
36-
- Depending on usage, also rotation and rotational velocity variables.
36+
- Depending on usage, also rotation and rotational velocity variables, accessed using `ori(frame).R` and `ori(frame).w`. The rotation matrix represents the rotation to rotate the world frame into the connector frame
37+
38+
# Parameters
39+
- `render = false`: If true, the connector is rendered in animations
40+
- `length = 1.0`: Length of the frame when rendered
41+
- `radius = 0.1`: Radius of the frame when rendered
3742
"""
3843
Frame

src/orientation.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ The rotation matrix returned, ``R_W^F``, is such that when a vector ``p_F`` expr
382382
```math
383383
p_W = R_W^F p_F
384384
```
385+
This is the inverse (transpose) of the rotation matrix stored in frame connectors (e.g. `ori(frame).R = get_rot(sol, frame, t)'`).
385386
386387
The columns of ``R_W_F`` indicate are the basis vectors of the frame ``F`` expressed in the world coordinate frame.
387388

0 commit comments

Comments
 (0)