Multi-robot Playground
AverageVelocityEstimatorNode Class Reference

#include <AverageVelocityEstimatorNode.h>

Public Member Functions

 AverageVelocityEstimatorNode ()
 
 ~AverageVelocityEstimatorNode ()
 

Private Member Functions

double ComputeAverageVelocity (std::deque< double > &speedArray)
 
void WorldPoseCallback (multirobotsimulations::CustomPose::ConstPtr msg)
 
void Update ()
 

Private Attributes

int aId
 
int aQueueSize
 
int aCount
 
bool aReceivedPosition
 
double aRate
 
std::string aNamespace
 
tf::Vector3 aLastWorldPos
 
tf::Vector3 aWorldPos
 
std::vector< ros::Timer > aTimers
 
std::vector< ros::Subscriber > aSubscribers
 
ros::Publisher aAverageVelocityPublisher
 
std_msgs::Float32 aAverageVelocityMsg
 
std::deque< double > aVelocityArray
 

Constructor & Destructor Documentation

◆ AverageVelocityEstimatorNode()

AverageVelocityEstimatorNode::AverageVelocityEstimatorNode ( )

◆ ~AverageVelocityEstimatorNode()

AverageVelocityEstimatorNode::~AverageVelocityEstimatorNode ( )

Member Function Documentation

◆ ComputeAverageVelocity()

double AverageVelocityEstimatorNode::ComputeAverageVelocity ( std::deque< double > &  speedArray)
private

◆ Update()

void AverageVelocityEstimatorNode::Update ( )
private

◆ WorldPoseCallback()

void AverageVelocityEstimatorNode::WorldPoseCallback ( multirobotsimulations::CustomPose::ConstPtr  msg)
private

Member Data Documentation

◆ aAverageVelocityMsg

std_msgs::Float32 AverageVelocityEstimatorNode::aAverageVelocityMsg
private

◆ aAverageVelocityPublisher

ros::Publisher AverageVelocityEstimatorNode::aAverageVelocityPublisher
private

◆ aCount

int AverageVelocityEstimatorNode::aCount
private

◆ aId

int AverageVelocityEstimatorNode::aId
private

◆ aLastWorldPos

tf::Vector3 AverageVelocityEstimatorNode::aLastWorldPos
private

◆ aNamespace

std::string AverageVelocityEstimatorNode::aNamespace
private

◆ aQueueSize

int AverageVelocityEstimatorNode::aQueueSize
private

◆ aRate

double AverageVelocityEstimatorNode::aRate
private

◆ aReceivedPosition

bool AverageVelocityEstimatorNode::aReceivedPosition
private

◆ aSubscribers

std::vector<ros::Subscriber> AverageVelocityEstimatorNode::aSubscribers
private

◆ aTimers

std::vector<ros::Timer> AverageVelocityEstimatorNode::aTimers
private

◆ aVelocityArray

std::deque<double> AverageVelocityEstimatorNode::aVelocityArray
private

◆ aWorldPos

tf::Vector3 AverageVelocityEstimatorNode::aWorldPos
private

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