-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
originally implemented in SciML/ModelingToolkitStandardLibrary.jl#220
- Loading branch information
1 parent
49d14ac
commit c312d75
Showing
8 changed files
with
1,796 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
""" | ||
Library to model planar mechanical multi-body systems inspired by https://github.com/dzimmer/PlanarMechanics | ||
""" | ||
|
||
module PlanarMechanics | ||
|
||
import ModelingToolkitStandardLibrary.Mechanical.Rotational | ||
import ModelingToolkitStandardLibrary.Mechanical.TranslationalModelica | ||
using ModelingToolkit: t_nounits as t, D_nounits as D | ||
using ModelingToolkit | ||
using ...Blocks: RealInput, RealOutput | ||
import ...@symcheck | ||
|
||
export Frame, FrameResolve, PartialTwoFrames, ZeroPosition | ||
include("utils.jl") | ||
|
||
export Fixed, Body, FixedTranslation, Spring, Damper, SpringDamper | ||
include("components.jl") | ||
|
||
export Revolute, Prismatic | ||
include("joints.jl") | ||
|
||
export AbsolutePosition, | ||
RelativePosition, AbsoluteVelocity, RelativeVelocity, AbsoluteAcceleration, | ||
RelativeAcceleration, connect_sensor | ||
include("sensors.jl") | ||
end |
Oops, something went wrong.