24 #include <plugins/gazebo/aspect/gazebo_inifin.h> 25 #include <core/threading/thread_finalizer.h> 54 if (gazebo_thread == NULL) {
56 "GazeboAspect, but RTTI says it " 57 "has not. ", thread->
name());
63 gazebo_thread->init_GazeboAspect(__gazebonode, __gazebo_world_node);
74 if (gazebo_thread == NULL) {
76 "GazeboAspect, but RTTI says it " 77 "has not. ", thread->
name());
79 gazebo_thread->finalize_GazeboAspect();
90 __gazebonode = gazebonode;
99 __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.