76 virtual int command(
int argc,
const char *
const *argv)
override;
UwMissionCoordinatorModule class is used to manage AUV followers and to collect statistics about them...
virtual int command(int argc, const char *const *argv) override
TCL command interpreter.
virtual int recvSyncClMsg(ClMessage *m) override
Recv syncronous cross layer messages to require an operation from another module.
virtual ~UwMissionCoordinatorModule()=default
Destructor of UwMissionCoordinatorModule class.
void removeMine(int id)
Send a signal to the AUV follower to inform it, that the mine it is detecting is removed.
std::vector< AUV_stats > auv_follower
ROV followers info.
UwMissionCoordinatorModule()
Default Constructor of UwMissionCoordinatorModule class.
bool isTracked(Position *p) const
Check if the mine at received position is already tracked.
AUV_stats describes statistics about the AUV follower.
Position * rov_position
Position of ROV follower.
int ctr_id
Id of the CTR module.
AUV_stats(int id_ctr, int id_trk)
Constructor of AUV_stats struct.
std::vector< Mine > rov_mine
Mines found by ROV follower.
int n_mines
Number of mines found by ROV follower.
int trk_id
Id of the Tracker module.
bool rov_status
Status of the ROV, if true is detecting a mine.
Mine describes a mine by its position and state.
Mine(Position *p, MineState s)
MineState state
Mine state.
Position * track_position
Mine tracked position.
MineState
MineState list all the possible state of a mine.
@ MINE_DETECTED
Mine found and started the removing process.
@ MINE_REMOVED
Mine removed.
@ MINE_TRACKED
Mine tracked.