BB.Sensor.SensorProfile (bb v0.20.2)

Copy Markdown View Source

Resolved transmission and joint reference for a joint-attached sensor.

Built by BB.Sensor.Server from a sensor's transmission and joint at init, then injected into the sensor callback module's resolved options as :sensor_profile. Drivers read the resolved transmission from this struct instead of looking up BB.Robot.sensors themselves.

When the sensor is attached at the robot level or to a link (not a joint), joint_name is nil and transmission is nil.

Summary

Types

t()

@type t() :: %BB.Sensor.SensorProfile{
  joint_name: atom() | nil,
  transmission: BB.Transmission.t() | nil
}