BB.Robot.Link (bb v0.4.0)
View SourceAn optimised link representation with all units converted to SI floats.
Links are connected to their parent via parent_joint (nil for the root link)
and to children via child_joints (list of joint names).
Summary
Types
Collision geometry information
RGBA color (values 0-1)
Geometry specification
Inertia tensor components in kg·m²
Material specification
Orientation as {roll, pitch, yaw} in radians
Position as {x, y, z} in meters
Visual geometry information
Types
@type collision() :: %{ name: atom() | nil, origin: {position(), orientation()} | nil, geometry: geometry() | nil }
Collision geometry information
RGBA color (values 0-1)
@type geometry() :: {:box, %{x: float(), y: float(), z: float()}} | {:cylinder, %{radius: float(), height: float()}} | {:sphere, %{radius: float()}} | {:mesh, %{filename: String.t(), scale: float()}}
Geometry specification
@type inertia() :: %{ ixx: float(), iyy: float(), izz: float(), ixy: float(), ixz: float(), iyz: float() }
Inertia tensor components in kg·m²
Material specification
Orientation as {roll, pitch, yaw} in radians
Position as {x, y, z} in meters
@type visual() :: %{ origin: {position(), orientation()} | nil, geometry: geometry() | nil, material: material() | nil }
Visual geometry information