23#include "sensorring/platform/SensorringExport.hpp"
108 virtual void comCallback(
const com::ComEndpoint source, std::uint8_t command,
const std::vector<std::uint8_t>& data) = 0;
111 unsigned int _hw_idx;
113 com::ComInterface* _interface;
Base class that executes actions either immediately or via a managed queue.
Communication endpoint identifier.
Device identifier (type, name, index) for device registration.
Defines a pose with translation and orientation.
Parameter structure of a sensor board.
RAII wrapper pairing a SubscriberToken with its cancel function.
Base class that executes actions either immediately or via a managed queue.
Definition ActionDispatcher.hpp:29
virtual bool configure()
Apply post-reset runtime configuration for this device.
const board::SensorBoardParams * getBoardContext() const
Return the board-level context pointer (non-owning).
math::Pose getGlobalPose() const
Compute and return the global pose in the ring coordinate frame.
void setBoardContext(const board::SensorBoardParams *board_params)
Initialize board-level context pointer (non-owning).
DeviceID getDeviceID() const
Return the full device identifier (type + index).
void setPoseOffset(const math::Pose &offset)
Store a pose offset relative to the board centre.
unsigned int getHwIdx() const
Return the zero-based hardware board index on its bus (used for CAN addressing and protocol bitmasks)...
math::Pose getPoseOffset() const
Return the stored pose offset relative to the board centre.
void setDeviceIndex(unsigned int index)
Reassign the logical device index (DeviceID.index) without changing the hardware index.
Device(DeviceID id, com::ComInterface *interface, com::ComEndpoint target)
Construct the device with identity and communication link.
Move-only RAII wrapper that pairs a SubscriberToken with an unsubscribe callable. Destroying a Subscr...
Definition Subscription.hpp:32
Parameter structure of a sensor board. A sensor board is one circuit board.
Definition SensorBoardParams.hpp:51
Uniquely identifies a communication endpoint as a (Direction, BoardAddress, DeviceId) tuple.
Definition ComEndpoint.hpp:37
Identifier for a device: type, human-readable name, and index.
Definition DeviceID.hpp:27
Defines a pose with translation and orientation.
Definition Pose.hpp:24