39#ifndef UWTRACKF_MODULE_H
40#define UWTRACKF_MODULE_H
62 virtual void expire(Event *e);
96 virtual int command(
int argc,
const char *
const *argv)
override;
106 virtual void initPkt(Packet *p)
override;
148 virtual void start()
override;
153 virtual void stop()
override;
UwSCFTrackerModule class is used to track mines via sonar and share tracking information via packets.
void updateMineRemove()
Update the mine measure.
virtual void stop() override
Stop to send packets.
FollowerState auv_state
Current state of the follower.
hdr_uwSCFTracker mine_measure
Detected mine packets.
void sendPkt()
Allocates, initialize and sends a packet with the default priority flag set from tcl.
virtual int command(int argc, const char *const *argv) override
TCL command interpreter.
UWSMPosition * updateTrackPosition()
Update the current track position with the nearest mine position.
FollowerState
Followerstate list all the possible state of the follower.
@ DETECT
Detecting a mine.
double demine_period
Timer to schedule packets transmission.
virtual void start() override
Start to send packets.
virtual void initPkt(Packet *p) override
Initializes a monitoring data packet passed as argument with the default values.
std::vector< UWSMPosition * > mine_positions
Positions of the mines in the area.
UwSCFTrackerModule()
Default Constructor of UwSCFTrackerModule class.
virtual ~UwSCFTrackerModule()=default
Destructor of UwSCFTrackerModule class.
Position auv_position
Current position of the follower.
UwUpdateMineStatus mine_timer
Timer to schedule detecting measurements.
UwTrackerModule class is used to track mobile nodes via sonar and share tracking information via pack...
UwUpdateMineStatus class is used to handle the scheduling period of UWSCFTRACKER packets.
virtual void expire(Event *e)
UwUpdateMineStatus(UwSCFTrackerModule *m)
hdr_uwSCFTracker describes the position and status of the current detected mine.
Provides the definition of the class UWSMPosition.
Provides the definition of the class UWROV.