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