Skip to content

Commit

Permalink
add PlanarMechanics module
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Sep 10, 2024
1 parent 49d14ac commit c312d75
Show file tree
Hide file tree
Showing 8 changed files with 1,796 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Multibody.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,7 @@ include("robot/robot_components.jl")
include("robot/FullRobot.jl")


export PlanarMechanics
include("PlanarMechanics/PlanarMechanics.jl")

end
27 changes: 27 additions & 0 deletions src/PlanarMechanics/PlanarMechanics.jl
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
Loading

0 comments on commit c312d75

Please sign in to comment.