ROS MASTER设置

xiaoxiao2021-02-28  114

ros master建立: 在自己电脑: gedit .bashrc export ROS_MASTER_URI=http://192.168.0.100(ordroid_ip):11311 export ROS_IP=192.168.0.105(my_computer_ip) source .bashrc

在远程电脑(比如 ordroid):

gedit .bashrc export ROS_MASTER_URI=http://192.168.0.100(ordroid_ip):11311 export ROS_IP=192.168.0.100(ordroid_ip) source .bashrc

如果想要在.bashrc里面获取本机的IP:

export ROS_MASTER_URI=http://localhost:11311 export ROS_IP=$(ifconfig | grep 'inet 地址:'| grep -v '127.0.0.1' | cut -d: -f2 | awk ' {print $1}')
转载请注明原文地址: https://www.6miu.com/read-56411.html

最新回复(0)