Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
swri_console::RosThread Class Reference

#include <ros_thread.h>

List of all members.

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 ( int  argc,
char **  argv 
)

Definition at line 36 of file ros_thread.cpp.


Member Function Documentation

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

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

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

Definition at line 93 of file ros_thread.cpp.

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.

void RosThread::run ( ) [protected]

Definition at line 45 of file ros_thread.cpp.

Definition at line 64 of file ros_thread.cpp.

void swri_console::RosThread::spun ( ) [signal]

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

void RosThread::startRos ( ) [private]

Definition at line 74 of file ros_thread.cpp.

void RosThread::stopRos ( ) [private]

Definition at line 86 of file ros_thread.cpp.


Member Data Documentation

Definition at line 75 of file ros_thread.h.

volatile bool swri_console::RosThread::is_running_ [private]

Definition at line 76 of file ros_thread.h.

Definition at line 77 of file ros_thread.h.


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


swri_console
Author(s):
autogenerated on Sat Jun 8 2019 18:46:13