modify the mpi scripts 4

This commit is contained in:
zhangshuai 2019-05-27 16:35:43 +08:00
parent 41f79599b1
commit a2409977d3
1 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,8 @@ done
#登入各节点启动roscore source还有改进空间ROS运行的工作目录应该作为参数传进来 #登入各节点启动roscore source还有改进空间ROS运行的工作目录应该作为参数传进来
for((i=0;i<host_count;i++)) for((i=0;i<host_count;i++))
do do
ssh -f -n ${hosts[$i]} "source $workspace_path/devel/setup.bash; ssh -f -n ${hosts[$i]} "source /opt/ros/kinetic/setup.bash;
source $workspace_path/devel/setup.bash;
roscore; roscore;
echo roscore_done!" echo roscore_done!"
echo "${hosts[$i]}:roscore_good" echo "${hosts[$i]}:roscore_good"
@ -61,7 +62,8 @@ sleep 20s
#登入各节点roslaunch加载模型source还有改进空间ROS运行的工作目录应该作为参数传进来 #登入各节点roslaunch加载模型source还有改进空间ROS运行的工作目录应该作为参数传进来
for((i=0;i<host_count;i++)) for((i=0;i<host_count;i++))
do do
ssh -f -n ${hosts[$i]} "source $workspace_path/devel/setup.bash; ssh -f -n ${hosts[$i]} "source /opt/ros/kinetic/setup.bash;
source $workspace_path/devel/setup.bash;
roslaunch $packdge_name $launch_file_name; roslaunch $packdge_name $launch_file_name;
echo roslaunch_done!" echo roslaunch_done!"
echo "${hosts[$i]}:roslaunch_good" echo "${hosts[$i]}:roslaunch_good"