24 #include <core/threading/thread_finalizer.h> 25 #include <plugins/gazebo/aspect/gazebo_inifin.h> 50 gazebo_thread = dynamic_cast<GazeboAspect *>(thread);
51 if (gazebo_thread == NULL) {
53 "GazeboAspect, but RTTI says it " 61 gazebo_thread->init_GazeboAspect(gazebonode_, gazebo_world_node_);
71 gazebo_thread = dynamic_cast<GazeboAspect *>(thread);
72 if (gazebo_thread == NULL) {
74 "GazeboAspect, but RTTI says it " 78 gazebo_thread->finalize_GazeboAspect();
88 gazebonode_ = gazebonode;
97 gazebo_world_node_ = gazebo_world_node;
Fawkes library namespace.
Thread aspect to get access to a Gazebo node handle.
Thread class encapsulation of pthreads.
GazeboAspectIniFin()
Constructor.
virtual void finalize(Thread *thread)
Finalize.
Thread cannot be initialized.
const char * name() const
Get name of thread.
Thread cannot be finalized.
void set_gazebonode(gazebo::transport::NodePtr gazebonode)
Set the Gazebo node handle to use for aspect initialization.
virtual void init(Thread *thread)
Initialize.
void set_gazebo_world_node(gazebo::transport::NodePtr gazebo_world_node)
Set the Gazebo node handle to use for aspect initialization.
Aspect initializer/finalizer base class.