DESERT 3.5.1
Loading...
Searching...
No Matches
UwMissionCoordinatorModule Class Reference

#include <uwsc-mission-coordinator-module.h>

Inheritance diagram for UwMissionCoordinatorModule:
Collaboration diagram for UwMissionCoordinatorModule:

Classes

struct  AUV_stats
 
struct  Mine
 

Public Member Functions

 UwMissionCoordinatorModule ()
 
virtual ~UwMissionCoordinatorModule ()=default
 
virtual int command (int argc, const char *const *argv) override
 
virtual int recvSyncClMsg (ClMessage *m) override
 

Protected Types

typedef struct UwMissionCoordinatorModule::Mine Mine
 
typedef struct UwMissionCoordinatorModule::AUV_stats AUV_stats
 

Protected Member Functions

void removeMine (int id)
 
bool isTracked (Position *p) const
 

Protected Attributes

std::vector< AUV_statsauv_follower
 

Detailed Description

UwMissionCoordinatorModule class is used to manage AUV followers and to collect statistics about them.

Definition at line 53 of file uwsc-mission-coordinator-module.h.

Member Typedef Documentation

◆ AUV_stats

AUV_stats describes statistics about the AUV follower.

It also contains ids of respectively the UwROV controller and UwTracker receiver module installed in the AUV leader.

◆ Mine

Mine describes a mine by its position and state.

Constructor & Destructor Documentation

◆ UwMissionCoordinatorModule()

UwMissionCoordinatorModule::UwMissionCoordinatorModule ( )

Default Constructor of UwMissionCoordinatorModule class.

Definition at line 69 of file uwsc-mission-coordinator-module.cc.

◆ ~UwMissionCoordinatorModule()

virtual UwMissionCoordinatorModule::~UwMissionCoordinatorModule ( )
virtualdefault

Destructor of UwMissionCoordinatorModule class.

Member Function Documentation

◆ command()

int UwMissionCoordinatorModule::command ( int  argc,
const char *const *  argv 
)
overridevirtual

TCL command interpreter.

It implements the following OTcl methods:

Parameters
argcNumber of arguments in argv.
argvArray of strings which are the command parameters (Note that argv[0] is the name of the object).
Returns
TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.

Definition at line 76 of file uwsc-mission-coordinator-module.cc.

◆ isTracked()

bool UwMissionCoordinatorModule::isTracked ( Position *  p) const
protected

Check if the mine at received position is already tracked.

Parameters
Position*Pointer to mine position
Returns
bool True if the mine is already tracked false otherwise

Definition at line 253 of file uwsc-mission-coordinator-module.cc.

◆ recvSyncClMsg()

int UwMissionCoordinatorModule::recvSyncClMsg ( ClMessage *  m)
overridevirtual

Recv syncronous cross layer messages to require an operation from another module.

Parameters
mPointer cross layer message
Returns
zero if successful

Definition at line 104 of file uwsc-mission-coordinator-module.cc.

◆ removeMine()

void UwMissionCoordinatorModule::removeMine ( int  id)
protected

Send a signal to the AUV follower to inform it, that the mine it is detecting is removed.

Parameters
intID of the ROV sent to detect the mine

Definition at line 221 of file uwsc-mission-coordinator-module.cc.

Member Data Documentation

◆ auv_follower

std::vector<AUV_stats> UwMissionCoordinatorModule::auv_follower
protected

ROV followers info.

Definition at line 140 of file uwsc-mission-coordinator-module.h.


The documentation for this class was generated from the following files: