Multi-robot Playground
RendezvousPlan Class Reference

#include <RendezvousPlan.h>

Public Member Functions

 RendezvousPlan (ros::NodeHandle &nodeHandle, const int &id)
 
 ~RendezvousPlan ()
 
int GetCurrentAgreement ()
 
double GetCurrentAgreementTimer ()
 
bool CheckConsensusCurrentPlan ()
 
void InitializeLocation (tf::Vector3 location)
 
void Update (const double &deltaTime)
 
bool ShouldFulfillAgreement ()
 
void SetNextAgreement ()
 
void UpdateCurrentAgreementLocation (tf::Vector3 newLocation)
 
tf::Vector3 GetCurrentAgreementLocation ()
 
void PrintLocations ()
 
void Print ()
 
void PrintCurrent ()
 
void PrintRealization ()
 
int GetCurrentAgreementUniqueID ()
 
int GetCurrentAgreementConsensusID ()
 
void RealizePlan (const int &robotId)
 
void ResetPlanRealization ()
 
bool WasPlanRealized ()
 
std::vector< int > * GetPlanPtr ()
 

Private Member Functions

std::string GenerateAgreementKey (const int &index)
 

Private Attributes

int id
 
int width
 
int current_agreement
 
double current_timer
 
std::vector< std::pair< int, std::vector< agreement_el > > > agreements
 
std::map< std::string, tf::Vector3 > agreements_locations
 
std::vector< std::vector< agreement_el > > agreementsIParticipate
 
std::vector< int > currentPlanRealization
 

Constructor & Destructor Documentation

◆ RendezvousPlan()

RendezvousPlan::RendezvousPlan ( ros::NodeHandle &  nodeHandle,
const int &  id 
)

◆ ~RendezvousPlan()

RendezvousPlan::~RendezvousPlan ( )

Member Function Documentation

◆ CheckConsensusCurrentPlan()

bool RendezvousPlan::CheckConsensusCurrentPlan ( )

◆ GenerateAgreementKey()

std::string RendezvousPlan::GenerateAgreementKey ( const int &  index)
private

◆ GetCurrentAgreement()

int RendezvousPlan::GetCurrentAgreement ( )

◆ GetCurrentAgreementConsensusID()

int RendezvousPlan::GetCurrentAgreementConsensusID ( )

◆ GetCurrentAgreementLocation()

tf::Vector3 RendezvousPlan::GetCurrentAgreementLocation ( )

◆ GetCurrentAgreementTimer()

double RendezvousPlan::GetCurrentAgreementTimer ( )

◆ GetCurrentAgreementUniqueID()

int RendezvousPlan::GetCurrentAgreementUniqueID ( )

◆ GetPlanPtr()

std::vector<int>* RendezvousPlan::GetPlanPtr ( )

◆ InitializeLocation()

void RendezvousPlan::InitializeLocation ( tf::Vector3  location)

◆ Print()

void RendezvousPlan::Print ( )

◆ PrintCurrent()

void RendezvousPlan::PrintCurrent ( )

◆ PrintLocations()

void RendezvousPlan::PrintLocations ( )

◆ PrintRealization()

void RendezvousPlan::PrintRealization ( )

◆ RealizePlan()

void RendezvousPlan::RealizePlan ( const int &  robotId)

◆ ResetPlanRealization()

void RendezvousPlan::ResetPlanRealization ( )

◆ SetNextAgreement()

void RendezvousPlan::SetNextAgreement ( )

◆ ShouldFulfillAgreement()

bool RendezvousPlan::ShouldFulfillAgreement ( )

◆ Update()

void RendezvousPlan::Update ( const double &  deltaTime)

◆ UpdateCurrentAgreementLocation()

void RendezvousPlan::UpdateCurrentAgreementLocation ( tf::Vector3  newLocation)

◆ WasPlanRealized()

bool RendezvousPlan::WasPlanRealized ( )

Member Data Documentation

◆ agreements

std::vector< std::pair<int, std::vector<agreement_el> > > RendezvousPlan::agreements
private

◆ agreements_locations

std::map<std::string, tf::Vector3> RendezvousPlan::agreements_locations
private

◆ agreementsIParticipate

std::vector<std::vector<agreement_el> > RendezvousPlan::agreementsIParticipate
private

◆ current_agreement

int RendezvousPlan::current_agreement
private

◆ current_timer

double RendezvousPlan::current_timer
private

◆ currentPlanRealization

std::vector<int> RendezvousPlan::currentPlanRealization
private

◆ id

int RendezvousPlan::id
private

◆ width

int RendezvousPlan::width
private

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