rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
Loading...
Searching...
No Matches
rosros.rospify.log.LogInhibitor Class Reference

Public Member Functions

 passes_identical (cls, caller_id, msg)
 Returns whether last message from caller was different, if any.
 
 passes_once (cls, caller_id)
 Returns whether the caller ID has not been once()-d before.
 
 passes_throttle (cls, caller_id, period)
 Returns whether time from last throttle() was more than specified seconds ago, if any.
 

Static Public Attributes

dict HASHES = {}
 Caller IDs and log message hashes for logxyz_throttle_identical()
 
 ONCES = set()
 Caller IDs registered for logxyz_once()
 
dict TIMES = {}
 Caller IDs and last timestamps for logxyz_throttle() and logxyz_throttle_identical()
 

Detailed Description

Definition at line 173 of file log.py.

Member Function Documentation

◆ passes_identical()

rosros.rospify.log.LogInhibitor.passes_identical (   cls,
  caller_id,
  msg 
)

Returns whether last message from caller was different, if any.

Definition at line 202 of file log.py.

◆ passes_once()

rosros.rospify.log.LogInhibitor.passes_once (   cls,
  caller_id 
)

Returns whether the caller ID has not been once()-d before.

Definition at line 185 of file log.py.

◆ passes_throttle()

rosros.rospify.log.LogInhibitor.passes_throttle (   cls,
  caller_id,
  period 
)

Returns whether time from last throttle() was more than specified seconds ago, if any.

Definition at line 192 of file log.py.

Member Data Documentation

◆ HASHES

dict rosros.rospify.log.LogInhibitor.HASHES = {}
static

Caller IDs and log message hashes for logxyz_throttle_identical()

Definition at line 182 of file log.py.

◆ ONCES

rosros.rospify.log.LogInhibitor.ONCES = set()
static

Caller IDs registered for logxyz_once()

Definition at line 176 of file log.py.

◆ TIMES

dict rosros.rospify.log.LogInhibitor.TIMES = {}
static

Caller IDs and last timestamps for logxyz_throttle() and logxyz_throttle_identical()

Definition at line 179 of file log.py.


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