Easy Navigation
Loading...
Searching...
No Matches
RTTFBuffer Class Reference

Provides functionality for RTTFBuffer. More...

#include <RTTFBuffer.hpp>

Inheritance diagram for RTTFBuffer:
Collaboration diagram for RTTFBuffer:

Public Member Functions

TFInfo get_tf_info () const
 Returns a snapshot of the current TFInfo.
 RTTFBuffer ()
 RTTFBuffer (const rclcpp::Clock::SharedPtr &clock)
void set_tf_info (const TFInfo &tf_info)

Additional Inherited Members

Static Public Member Functions inherited from Singleton< RTTFBuffer >
static RTTFBuffer & get (Args &&... args)
static RTTFBuffer * getInstance (Args &&... args)
static void removeInstance ()
 Destroy the current instance, if any; the next getInstance()/get() call creates a fresh one.
Protected Member Functions inherited from Singleton< RTTFBuffer >
Singleton & operator= (const Singleton &)=delete
 Singleton ()=default
 ~Singleton ()=default

Detailed Description

Provides functionality for RTTFBuffer.

It also provides the TFInfo with the frames convention used across EasyNav.

Constructor & Destructor Documentation

◆ RTTFBuffer() [1/2]

RTTFBuffer ( const rclcpp::Clock::SharedPtr & clock)
explicit

◆ RTTFBuffer() [2/2]

RTTFBuffer ( )

Member Function Documentation

◆ get_tf_info()

TFInfo get_tf_info ( ) const

Returns a snapshot of the current TFInfo.

Returned by value (copy taken while tf_info_mutex_ is held): this is read continuously from both the RT and non-RT threads while set_tf_info() can be called from either during a reconfigure, so a returned reference into tf_info_ would be exposed to a concurrent unsynchronized write (torn/dangling strings).

◆ set_tf_info()

void set_tf_info ( const TFInfo & tf_info)

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