24 #include <plugins/ros/aspect/ros_inifin.h> 25 #include <core/threading/thread_finalizer.h> 26 #include <ros/node_handle.h> 50 ros_thread =
dynamic_cast<ROSAspect *
>(thread);
51 if (ros_thread == NULL) {
53 "ROSAspect, but RTTI says it " 54 "has not. ", thread->
name());
60 ros_thread->init_ROSAspect(__rosnode);
67 ros_thread =
dynamic_cast<ROSAspect *
>(thread);
68 if (ros_thread == NULL) {
70 "ROSAspect, but RTTI says it " 71 "has not. ", thread->
name());
73 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.