sh 0_ros_master_setup_normal.bash
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 0_ros_master_setup_normal.bash相关的知识,希望对你有一定的参考价值。
#!/bin/bash
bash_folder=$HOME/ros/bash_scripts
rm $bash_folder/ros_master_setup.bash
case "$1" in
"0" ) bash_script=0_ros_master_setup_normal.bash ;;
"1" ) bash_script=1_ros_master_setup_wired.bash ;;
"2" ) bash_script=2_ros_master_setup_wired_not_master.bash ;;
* ) bash_script=0_ros_master_setup_normal.bash ;;
esac
cp $bash_folder/$bash_script $bash_folder/ros_master_setup.bash
source $HOME/.bashrc
#!/bin/bash
unset ROS_IP
export ROS_MASTER_URI=http://localhost:11311/
#!/bin/bash
if [ "$#" = "0" ]; then
master_ip=10.249.255.xxx
else
master_ip=$1
fi
export ROS_MASTER_URI=http://$master_ip:11311
export ROS_IP=10.249.255.zzz
#!/bin/bash
export ROS_IP=10.249.255.zzz
export ROS_MASTER_URI=http://localhost:11311/
#!/bin/bash
unset ROS_IP
export ROS_MASTER_URI=http://localhost:11311/
以上是关于sh 0_ros_master_setup_normal.bash的主要内容,如果未能解决你的问题,请参考以下文章
sh vcloud-centos_fix_eth1_to_eth0.sh
sh 0_ros_master_setup_normal.bash
为啥我收到错误“/bin/sh: x86_64-apple-darwin13.4.0-clang: command not found”?
sh_05_偶数求和
shell脚本定时备份日志===logBackup.sh
007_zkCli.sh