Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
rosbag_fancy::Topic Struct Reference

#include <topic_manager.h>

Public Types

enum  Flag { Flag::UDP = (1 << 0) }
 

Public Member Functions

float messageRateAt (const ros::WallTime &time)
 
void notifyMessage (std::uint64_t bytes)
 
Topicoperator= (const Topic &other)=delete
 
Topicoperator= (Topic &&other)=default
 
 Topic (const std::string &name, std::size_t id, float rateLimit=0.0f, int flags=0)
 
 Topic (const Topic &other)=delete
 
 Topic (Topic &&other)=default
 

Public Attributes

float bandwidth = 0.0f
 
std::uint64_t bytesInStatsPeriod = 0
 
std::uint64_t dropCounter = 0
 
int flags
 
std::size_t id
 
float lambdaLast = 0.0f
 
float lambdaSmoothLast = 0.0f
 
ros::Time lastMessageReceivedROSTime
 
ros::Time lastMessageROSTime
 
ros::WallTime lastMessageTime
 
float messageRate = 0.0f
 
std::uint64_t messagesInStatsPeriod = 0
 
std::string name
 
unsigned int numPublishers = 0
 
float rateLimit
 
float throttleAllowance = 0.0f
 
std::uint64_t totalBytes = 0
 
std::uint64_t totalMessages = 0
 

Static Public Attributes

static constexpr float DECAY = -LOG05/HALF_LIFE
 
static constexpr float HALF_LIFE = 1.0f
 
static constexpr float LOG05 = -0.6931471805599453f
 
static const ros::WallTime T0 = ros::WallTime::now()
 

Detailed Description

Definition at line 15 of file topic_manager.h.

Member Enumeration Documentation

◆ Flag

Enumerator
UDP 

Definition at line 17 of file topic_manager.h.

Constructor & Destructor Documentation

◆ Topic() [1/3]

rosbag_fancy::Topic::Topic ( const std::string &  name,
std::size_t  id,
float  rateLimit = 0.0f,
int  flags = 0 
)
inlineexplicit

Definition at line 22 of file topic_manager.h.

◆ Topic() [2/3]

rosbag_fancy::Topic::Topic ( const Topic other)
delete

◆ Topic() [3/3]

rosbag_fancy::Topic::Topic ( Topic &&  other)
default

Member Function Documentation

◆ messageRateAt()

float rosbag_fancy::Topic::messageRateAt ( const ros::WallTime time)
inline

Definition at line 88 of file topic_manager.h.

◆ notifyMessage()

void rosbag_fancy::Topic::notifyMessage ( std::uint64_t  bytes)
inline

Definition at line 70 of file topic_manager.h.

◆ operator=() [1/2]

Topic& rosbag_fancy::Topic::operator= ( const Topic other)
delete

◆ operator=() [2/2]

Topic& rosbag_fancy::Topic::operator= ( Topic &&  other)
default

Member Data Documentation

◆ bandwidth

float rosbag_fancy::Topic::bandwidth = 0.0f

Definition at line 50 of file topic_manager.h.

◆ bytesInStatsPeriod

std::uint64_t rosbag_fancy::Topic::bytesInStatsPeriod = 0

Definition at line 45 of file topic_manager.h.

◆ DECAY

constexpr float rosbag_fancy::Topic::DECAY = -LOG05/HALF_LIFE
staticconstexpr

Definition at line 67 of file topic_manager.h.

◆ dropCounter

std::uint64_t rosbag_fancy::Topic::dropCounter = 0

Definition at line 52 of file topic_manager.h.

◆ flags

int rosbag_fancy::Topic::flags

Definition at line 36 of file topic_manager.h.

◆ HALF_LIFE

constexpr float rosbag_fancy::Topic::HALF_LIFE = 1.0f
staticconstexpr

Definition at line 65 of file topic_manager.h.

◆ id

std::size_t rosbag_fancy::Topic::id

Definition at line 38 of file topic_manager.h.

◆ lambdaLast

float rosbag_fancy::Topic::lambdaLast = 0.0f

Definition at line 62 of file topic_manager.h.

◆ lambdaSmoothLast

float rosbag_fancy::Topic::lambdaSmoothLast = 0.0f

Definition at line 63 of file topic_manager.h.

◆ lastMessageReceivedROSTime

ros::Time rosbag_fancy::Topic::lastMessageReceivedROSTime

Definition at line 43 of file topic_manager.h.

◆ lastMessageROSTime

ros::Time rosbag_fancy::Topic::lastMessageROSTime

Definition at line 42 of file topic_manager.h.

◆ lastMessageTime

ros::WallTime rosbag_fancy::Topic::lastMessageTime

Definition at line 41 of file topic_manager.h.

◆ LOG05

constexpr float rosbag_fancy::Topic::LOG05 = -0.6931471805599453f
staticconstexpr

Definition at line 66 of file topic_manager.h.

◆ messageRate

float rosbag_fancy::Topic::messageRate = 0.0f

Definition at line 49 of file topic_manager.h.

◆ messagesInStatsPeriod

std::uint64_t rosbag_fancy::Topic::messagesInStatsPeriod = 0

Definition at line 44 of file topic_manager.h.

◆ name

std::string rosbag_fancy::Topic::name

Definition at line 34 of file topic_manager.h.

◆ numPublishers

unsigned int rosbag_fancy::Topic::numPublishers = 0

Definition at line 57 of file topic_manager.h.

◆ rateLimit

float rosbag_fancy::Topic::rateLimit

Definition at line 35 of file topic_manager.h.

◆ T0

const ros::WallTime rosbag_fancy::Topic::T0 = ros::WallTime::now()
static

Definition at line 68 of file topic_manager.h.

◆ throttleAllowance

float rosbag_fancy::Topic::throttleAllowance = 0.0f

Definition at line 47 of file topic_manager.h.

◆ totalBytes

std::uint64_t rosbag_fancy::Topic::totalBytes = 0

Definition at line 55 of file topic_manager.h.

◆ totalMessages

std::uint64_t rosbag_fancy::Topic::totalMessages = 0

Definition at line 54 of file topic_manager.h.


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


rosbag_fancy
Author(s):
autogenerated on Tue Feb 20 2024 03:20:59