Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
swri_console::RosThread Class Reference

#include <ros_thread.h>

Inheritance diagram for swri_console::RosThread:
Inheritance graph
[legend]

Signals

void connected (bool)
 
void logReceived (const rosgraph_msgs::LogConstPtr &msg)
 
void spun ()
 

Public Member Functions

 RosThread (int argc, char **argv)
 
void shutdown ()
 

Protected Member Functions

void run ()
 

Private Member Functions

void handleRosout (const rosgraph_msgs::LogConstPtr &msg)
 
void startRos ()
 
void stopRos ()
 

Private Attributes

bool is_connected_
 
volatile bool is_running_
 
ros::Subscriber rosout_sub_
 

Detailed Description

Definition at line 42 of file ros_thread.h.

Constructor & Destructor Documentation

◆ RosThread()

RosThread::RosThread ( int  argc,
char **  argv 
)

Definition at line 36 of file ros_thread.cpp.

Member Function Documentation

◆ connected

void swri_console::RosThread::connected ( bool  )
signal

Emitted every time we are successfully connected to or disconnected from ROS.

◆ handleRosout()

void RosThread::handleRosout ( const rosgraph_msgs::LogConstPtr &  msg)
private

Definition at line 94 of file ros_thread.cpp.

◆ logReceived

void swri_console::RosThread::logReceived ( const rosgraph_msgs::LogConstPtr &  msg)
signal

Emitted every time a log message is received. This can be emitted multiple times per spin of the ROS core; wait until spun() is emitted to do any processing on them.

◆ run()

void RosThread::run ( )
protected

Definition at line 46 of file ros_thread.cpp.

◆ shutdown()

void RosThread::shutdown ( )

Definition at line 65 of file ros_thread.cpp.

◆ spun

void swri_console::RosThread::spun ( )
signal

Emitted after every time ros::spinOnce() completes.

◆ startRos()

void RosThread::startRos ( )
private

Definition at line 75 of file ros_thread.cpp.

◆ stopRos()

void RosThread::stopRos ( )
private

Definition at line 87 of file ros_thread.cpp.

Member Data Documentation

◆ is_connected_

bool swri_console::RosThread::is_connected_
private

Definition at line 75 of file ros_thread.h.

◆ is_running_

volatile bool swri_console::RosThread::is_running_
private

Definition at line 76 of file ros_thread.h.

◆ rosout_sub_

ros::Subscriber swri_console::RosThread::rosout_sub_
private

Definition at line 77 of file ros_thread.h.


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


swri_console
Author(s): P. J. Reed , Jerry Towler , David Anthony
autogenerated on Sat Sep 23 2023 02:55:37