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();
Aspect initializer/finalizer base class.
Thread cannot be finalized.
Thread cannot be initialized.
virtual void finalize(Thread *thread)
Finalize thread.
void set_rosnode(LockPtr< ros::NodeHandle > rosnode)
Set the ROS node handle to use for aspect initialization.
ROSAspectIniFin()
Constructor.
virtual void init(Thread *thread)
Initialize thread.
Thread aspect to get access to a ROS node handle.
Thread class encapsulation of pthreads.
const char * name() const
Get name of thread.
Fawkes library namespace.