diff --git a/Gazebo_Distributed_MPI/gazebo/physics/World.cc b/Gazebo_Distributed_MPI/gazebo/physics/World.cc index 32beb91..110de1d 100644 --- a/Gazebo_Distributed_MPI/gazebo/physics/World.cc +++ b/Gazebo_Distributed_MPI/gazebo/physics/World.cc @@ -1357,7 +1357,10 @@ ModelPtr World::LoadModel(sdf::ElementPtr _sdf, BasePtr _parent) if (model->GetName() == this->distribution->GetGazeboIDPtr(gazeboLocalID)->GetModelName(i)) { this->dataPtr->ownModels.push_back(model); - model->SetStatic(true); // Added by zhangshuai for MPI 2019.07.17 + } + else + { + model->SetStatic(true); // Added by zhangshuai for MPI 2019.07.18 } } }