#include <Interloc.h>
◆ Interloc()
◆ ~Interloc()
virtual Interloc::~Interloc |
( |
| ) |
|
|
virtualdefault |
◆ dumpUpdatesHistory()
void Interloc::dumpUpdatesHistory |
( |
| ) |
|
|
private |
◆ filterValue()
constexpr float Interloc::filterValue |
( |
float |
oldValue, |
|
|
float |
newValue, |
|
|
float |
alpha |
|
) |
| |
|
staticconstexprprivate |
◆ getPositionsTable()
Returns the position table for all robots in the swarm.
- Returns
- The position table
Implements IInterloc.
◆ getRobotArrayIndex()
std::optional< uint8_t > Interloc::getRobotArrayIndex |
( |
uint16_t |
robotId | ) |
const |
|
private |
◆ getRobotPosition()
std::optional< RelativePosition > Interloc::getRobotPosition |
( |
uint16_t |
robotId | ) |
const |
|
overridevirtual |
Returns the last known relative position of a given robot.
- Parameters
-
robotId | The ID of the robot to get the position |
- Returns
- The relative position of the robot
Implements IInterloc.
◆ isLineOfSight()
bool Interloc::isLineOfSight |
( |
uint16_t |
robotId | ) |
const |
|
overridevirtual |
Tells if a robot is in line of sight.
- Parameters
-
robotId | The ID of the robot to get |
- Returns
- Is in line of sight
Implements IInterloc.
◆ process()
void Interloc::process |
( |
| ) |
|
|
virtual |
Spins the interloc task checking if any updates happened. Processing them and pushing update values to the output queue.
Implements IInterloc.
◆ processPositionUpdate()
void Interloc::processPositionUpdate |
( |
const InterlocUpdate & |
positionUpdate | ) |
|
|
private |
◆ updateRobotPosition()
◆ INTERLOC_UDPATES_QUEUE_SIZE
constexpr uint8_t Interloc::INTERLOC_UDPATES_QUEUE_SIZE = 5 |
|
staticconstexpr |
◆ m_interlocManager
◆ m_logger
◆ m_messageHandler
◆ m_positionsTable
◆ m_positionUpdateInputQueue
INotificationQueue<InterlocUpdate>& Interloc::m_positionUpdateInputQueue |
|
private |
◆ m_positionUpdateOutputQueue
ICircularQueue<uint16_t>& Interloc::m_positionUpdateOutputQueue |
|
private |
◆ m_updateHistoryIdx
uint8_t Interloc::m_updateHistoryIdx |
|
private |
◆ m_updatesHistory
std::array<InterlocUpdate, InterlocDumpDTO::MAX_UPDATES_SIZE> Interloc::m_updatesHistory |
|
private |
The documentation for this class was generated from the following files: