a5b859edd3
1: http://wiki.ros.org/urdf/Tutorials/Building%20a%20Visual%20Robot%20Model%20with%20URDF%20from%20Scratch
19 lines
455 B
Elixir
19 lines
455 B
Elixir
defmodule Kinemat.Geometry.Mesh do
|
|
defstruct filename: nil
|
|
alias Kinemat.Geometry.Mesh
|
|
|
|
@moduledoc """
|
|
Describes a mesh geometry.
|
|
|
|
Note that kinemat doesn't understand meshes, however it may be required to be
|
|
able to describe them in URDF.
|
|
"""
|
|
|
|
@type t :: %Mesh{filename: Path.t()}
|
|
|
|
@doc """
|
|
Initialise a new mesh from the provided file.
|
|
"""
|
|
@spec init(Path.t()) :: Mesh.t()
|
|
def init(filename), do: %Mesh{filename: filename}
|
|
end
|