代码:this->node->Init(this->model->GetWorld( )->GetName());
版本问题,如果你的Gazebo版本小于8,那么正确语法GetName();
大于等于8,正确语法Name()。
可以修改代码为
#if GAZEBO_MAJOR_VERSION < 8
this->node->Init(this->model->GetWorld( )->GetName());
#else
this->node->Init(this->model->GetWorld( )->Name());
#endif