modify the mpi scripts 4
This commit is contained in:
parent
41f79599b1
commit
a2409977d3
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue