Leaning ROS: Running ROS across multiple machines

Posted xbit

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Leaning ROS: Running ROS across multiple machines相关的知识,希望对你有一定的参考价值。

Start the master

ssh hal
roscore

Start the listener

ssh hal
export ROS_MASTER_URI=http://hal:11311
rosrun rospy_tutorials listener.py

Start the talker

ssh marvin
export ROS_MASTER_URI=http://hal:11311
rosrun rospy_tutorials talker.py

rostopic

rostopic list # You get a list of all available topics
rostopic echo /topic_name # check if there is a connection and messages still come.

When something goes wrong

echo $ROS_IP 

 

以上是关于Leaning ROS: Running ROS across multiple machines的主要内容,如果未能解决你的问题,请参考以下文章

Mikro Tik ros脚本 if 判断

ROS2与ROS共存

ROS----参数

ros使用详解

ROS架构

ros如何授权