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_);
70 GazeboAspect *gazebo_thread;
71 gazebo_thread =
dynamic_cast<GazeboAspect *
>(thread);
72 if (gazebo_thread == NULL) {
73 throw CannotFinalizeThreadException(
"Thread '%s' claims to have the "
74 "GazeboAspect, but RTTI says it "
78 gazebo_thread->finalize_GazeboAspect();
88 gazebonode_ = gazebonode;
97 gazebo_world_node_ = gazebo_world_node;