diff --git a/Gazebo_Distributed_MPI/gazebo/physics/World.cc b/Gazebo_Distributed_MPI/gazebo/physics/World.cc index e639a2f..025f193 100644 --- a/Gazebo_Distributed_MPI/gazebo/physics/World.cc +++ b/Gazebo_Distributed_MPI/gazebo/physics/World.cc @@ -1069,7 +1069,7 @@ void World::Update() #endif // std::cout << "===== iterations:\t" << this->dataPtr->iterations << std::endl; - if (this->dataPtr->iterations == 1000000) + if (this->dataPtr->iterations == 100000) { if (this->gazeboLocalID == 0) { diff --git a/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_10hector_mpi.world b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_10hector_mpi_test.world similarity index 100% rename from Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_10hector_mpi.world rename to Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_10hector_mpi_test.world diff --git a/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_4hector_mpi.world b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_10hector_tcp_test.world similarity index 77% rename from Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_4hector_mpi.world rename to Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_10hector_tcp_test.world index d0c7bac..8a90f3c 100644 --- a/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_4hector_mpi.world +++ b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_10hector_tcp_test.world @@ -22,14 +22,20 @@ - + bebop_0 bebop_1 - - bebop_2 bebop_3 + bebop_4 + + + bebop_5 + bebop_6 + bebop_7 + bebop_8 + bebop_9 diff --git a/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_2hector_mpi_test.world b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_2hector_mpi_test.world similarity index 100% rename from Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_2hector_mpi_test.world rename to Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_2hector_mpi_test.world diff --git a/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_2hector_tcp_test.world b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_2hector_tcp_test.world similarity index 97% rename from Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_2hector_tcp_test.world rename to Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_2hector_tcp_test.world index 5bef021..a4753a4 100644 --- a/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_2hector_tcp_test.world +++ b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_2hector_tcp_test.world @@ -26,7 +26,7 @@ bebop_0 - + bebop_1 diff --git a/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_30hector_mpi.world b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_30hector_mpi_test.world similarity index 100% rename from Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_30hector_mpi.world rename to Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_30hector_mpi_test.world diff --git a/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_30hector_tcp_test.world b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_30hector_tcp_test.world new file mode 100644 index 0000000..12b6b77 --- /dev/null +++ b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_30hector_tcp_test.world @@ -0,0 +1,75 @@ + + + + + + model://sun + + + + model://kunming_airport + 0 0 0 0 0 0 + + + + 0.68 0.68 0.68 1.0 + + + + 0 + + + + + + + + bebop_0 + bebop_1 + bebop_2 + bebop_3 + bebop_4 + bebop_5 + bebop_6 + bebop_7 + bebop_8 + bebop_9 + bebop_10 + bebop_11 + bebop_12 + bebop_13 + bebop_14 + + + bebop_15 + bebop_16 + bebop_17 + bebop_18 + bebop_19 + bebop_20 + bebop_21 + bebop_22 + bebop_23 + bebop_24 + bebop_25 + bebop_26 + bebop_27 + bebop_28 + bebop_29 + + + + + 0 + 0.001 + 0 + + + + + diff --git a/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_4hector_mpi_test.world b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_4hector_mpi_test.world similarity index 100% rename from Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_4hector_mpi_test.world rename to Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_4hector_mpi_test.world diff --git a/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_4hector_tcp_test.world b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_4hector_tcp_test.world new file mode 100644 index 0000000..9604601 --- /dev/null +++ b/Gazebo_Distributed_MPI/mpi_run/kunming_airport_distribution_4hector_tcp_test.world @@ -0,0 +1,81 @@ + + + + + + model://sun + + + + model://kunming_airport + 0 0 0 0 0 0 + + + + 0.68 0.68 0.68 1.0 + + + + 0 + + + + + + + + bebop_0 + bebop_1 + + + bebop_2 + bebop_3 + + + + + 0 + 0.001 + 0 + + + + + 0 5 0.186 0 0 0 + + model://quadrotor + + + + + + 0 -5 0.186 0 0 0 + + model://quadrotor + + + + + + 5 0 0.186 0 0 0 + + model://quadrotor + + + + + + -5 0 0.186 0 0 0 + + model://quadrotor + + + + + + diff --git a/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_2hector_mpi.world b/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_2hector_mpi.world deleted file mode 100644 index f9c62d5..0000000 --- a/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_2hector_mpi.world +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - model://sun - - - - model://kunming_airport - 0 0 0 0 0 0 - - - - 0.68 0.68 0.68 1.0 - - - - 0 - - - - - - - - bebop_0 - - - bebop_1 - - - - - 0 - 0.001 - 0 - - - - -