26 lines
719 B
Elixir
26 lines
719 B
Elixir
|
defmodule Kinemat do
|
||
|
defmacro __using__(_opts) do
|
||
|
quote do
|
||
|
alias Kinemat.{Point, Cartesian, Cylindrical, Spherical,
|
||
|
Orientation, Euler, RotationMatrix, Quaternion,
|
||
|
# Joint, Point, Prismatic, Radians, Revolute, Spherical,
|
||
|
Frame}
|
||
|
import Angle.Sigil
|
||
|
end
|
||
|
end
|
||
|
|
||
|
@moduledoc """
|
||
|
Kinemat handles forward, reverse and dynamics kinematics for robotic systems
|
||
|
and 3D simulation.
|
||
|
|
||
|
Use this module to automatically include a bunch of aliases and helpers.
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
iex> use Kinemat
|
||
|
...> Euler.init(:xyz, ~a(0), ~a(0), ~a(0))
|
||
|
#Kinemat.Orientation<[euler: :xyz, x: #Angle<0>, y: #Angle<0>, z: #Angle<0>]>
|
||
|
"""
|
||
|
|
||
|
end
|