ROS2Sonic  0.2.0
A ROS2 driver for R2Sonic MBES
Loading...
Searching...
No Matches
r2sonic::R2SonicNode::msgMtx_< MSG_T, STORAGE_T > Struct Template Reference

a colleciton of rosmessageg publisher and a mutex grouped for convienence. More...

#include <r2sonic_node.hpp>

Public Member Functions

void lock ()
 
void unlock ()
 

Public Attributes

STORAGE_T msg
 the way you want to store the message
 
std::shared_ptr< rclcpp::Publisher< MSG_T > > pub
 the publisher to publish the message
 
std::mutex mtx
 the mutex associated with the message
 

Detailed Description

template<typename MSG_T, typename STORAGE_T>
struct r2sonic::R2SonicNode::msgMtx_< MSG_T, STORAGE_T >

a colleciton of rosmessageg publisher and a mutex grouped for convienence.

Member Function Documentation

◆ lock()

template<typename MSG_T , typename STORAGE_T >
void r2sonic::R2SonicNode::msgMtx_< MSG_T, STORAGE_T >::lock ( )
inline

◆ unlock()

template<typename MSG_T , typename STORAGE_T >
void r2sonic::R2SonicNode::msgMtx_< MSG_T, STORAGE_T >::unlock ( )
inline

Member Data Documentation

◆ msg

template<typename MSG_T , typename STORAGE_T >
STORAGE_T r2sonic::R2SonicNode::msgMtx_< MSG_T, STORAGE_T >::msg

the way you want to store the message

◆ mtx

template<typename MSG_T , typename STORAGE_T >
std::mutex r2sonic::R2SonicNode::msgMtx_< MSG_T, STORAGE_T >::mtx

the mutex associated with the message

◆ pub

template<typename MSG_T , typename STORAGE_T >
std::shared_ptr< rclcpp::Publisher<MSG_T> > r2sonic::R2SonicNode::msgMtx_< MSG_T, STORAGE_T >::pub

the publisher to publish the message


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