#include <ros_thread.h>
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_ |
Definition at line 42 of file ros_thread.h.
RosThread::RosThread | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 36 of file ros_thread.cpp.
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.
void RosThread::shutdown | ( | ) |
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.
bool swri_console::RosThread::is_connected_ [private] |
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.