BB.Message.Geometry.Wrench (bb v0.15.0)
View SourceForce and torque in 3D space.
Fields
force- Force asBB.Vec3.t()in Newtonstorque- Torque asBB.Vec3.t()in Newton-metres
Examples
alias BB.Message.Geometry.Wrench
alias BB.Math.Vec3
{:ok, msg} = Wrench.new(:end_effector, Vec3.new(0.0, 0.0, -10.0), Vec3.zero())
Summary
Types
@type t() :: %BB.Message.Geometry.Wrench{ force: BB.Math.Vec3.t(), torque: BB.Math.Vec3.t() }
Functions
@spec new( atom(), keyword() ) :: {:ok, BB.Message.t()} | {:error, term()}
@spec new(atom(), BB.Math.Vec3.t(), BB.Math.Vec3.t()) :: {:ok, BB.Message.t()} | {:error, term()}
Create a new Wrench message.
Returns {:ok, %BB.Message{}} with the wrench as payload.
Examples
alias BB.Math.Vec3
{:ok, msg} = Wrench.new(:end_effector, Vec3.new(0.0, 0.0, -10.0), Vec3.zero())