modify the mpi scripts 2
This commit is contained in:
parent
6f1434a43f
commit
270c2b6871
|
@ -12,6 +12,12 @@ workspace_path=$3
|
||||||
world_file=$4
|
world_file=$4
|
||||||
host_file=$5
|
host_file=$5
|
||||||
|
|
||||||
|
echo $packdge_name
|
||||||
|
echo $launch_file_name
|
||||||
|
echo $workspace_path
|
||||||
|
echo $world_file
|
||||||
|
echo $host_file
|
||||||
|
|
||||||
host_count=0
|
host_count=0
|
||||||
hosts=()
|
hosts=()
|
||||||
|
|
||||||
|
@ -45,7 +51,7 @@ done
|
||||||
sleep 5s
|
sleep 5s
|
||||||
|
|
||||||
#登入第一个节点启动MPI的gzserver,并成为各自节点上的ROS node
|
#登入第一个节点启动MPI的gzserver,并成为各自节点上的ROS node
|
||||||
ssh -f -n ${hosts[0]} "cd ~/MPI;
|
ssh -f -n ${hosts[0]} "cd ~/Git/Gazebo_Distributed_MPI/mpi_run;
|
||||||
mpiexec -hostfile $host_file -np 1 mygzserver $world_file $workspace_path : -np 1 mygzserver $world_file $workspace_path;
|
mpiexec -hostfile $host_file -np 1 mygzserver $world_file $workspace_path : -np 1 mygzserver $world_file $workspace_path;
|
||||||
echo mpiexec_done!"
|
echo mpiexec_done!"
|
||||||
echo "${hosts[0]}:mpiexec_good"
|
echo "${hosts[0]}:mpiexec_good"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
anwen slots=1
|
anwen slots=1
|
||||||
zhangshuai-ThinkPad-X250 slots=1
|
airc02-PowerEdge-T640 slots=1
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
./MPI_Gazebo_launch.sh hector_quadrotor_gazebo hector_2_single_gazebo_mpi_spawn_test.launch ~/Git/Gazebo_Hector_Test ~/Git/Gazebo_Hector_Test/src/hector_quadrotor/hector_quadrotor_gazebo/worlds/kunming_airport_distribution_2hector_mpi_test.world hostfile
|
Loading…
Reference in New Issue