BB.Message.Sensor.JointState (bb v0.2.1)
View SourceState of a set of joints.
Fields
names- List of joint names as atomspositions- Joint positions in radians (revolute) or metres (prismatic)velocities- Joint velocities in rad/s or m/sefforts- Joint efforts in Nm or N
All lists must have the same length. Missing values can be represented as empty lists.
Examples
alias BB.Message.Sensor.JointState
{:ok, msg} = JointState.new(:arm,
names: [:joint1, :joint2],
positions: [0.0, 1.57],
velocities: [0.1, 0.0],
efforts: [0.5, 0.2]
)
Summary
Types
Functions
@spec new( atom(), keyword() ) :: {:ok, BB.Message.t()} | {:error, term()}