24 #include <core/threading/thread_finalizer.h> 25 #include <plugins/ros/aspect/ros_inifin.h> 26 #include <ros/node_handle.h> 46 ros_thread = dynamic_cast<ROSAspect *>(thread);
47 if (ros_thread == NULL) {
49 "ROSAspect, but RTTI says it " 57 ros_thread->init_ROSAspect(rosnode_);
64 ros_thread = dynamic_cast<ROSAspect *>(thread);
65 if (ros_thread == NULL) {
67 "ROSAspect, but RTTI says it " 71 ros_thread->finalize_ROSAspect();
Thread aspect to get access to a ROS node handle.
Fawkes library namespace.
Thread class encapsulation of pthreads.
void set_rosnode(LockPtr< ros::NodeHandle > rosnode)
Set the ROS node handle to use for aspect initialization.
Thread cannot be initialized.
virtual void finalize(Thread *thread)
Finalize thread.
const char * name() const
Get name of thread.
ROSAspectIniFin()
Constructor.
Thread cannot be finalized.
virtual void init(Thread *thread)
Initialize thread.
Aspect initializer/finalizer base class.