This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cs:ros:networking:start [2017/10/12 12:02] James Irwin |
cs:ros:networking:start [2017/10/12 12:02] James Irwin [Sub Setup] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Networking ====== | ====== Networking ====== | ||
- | ====== Introduction ====== | + | ===== Introduction ===== |
ROS can be used across a network, with different nodes running on different computers. One computer should be designated as the "server" computer, which runs the rosmaster server (this program, along with a few others, is started up when you run `roscore`). It makes little difference as to which computer runs `roscore`, as the server is not a CPU-intensive task. For convenience, we always set the sub to be our rosmaster server. | ROS can be used across a network, with different nodes running on different computers. One computer should be designated as the "server" computer, which runs the rosmaster server (this program, along with a few others, is started up when you run `roscore`). It makes little difference as to which computer runs `roscore`, as the server is not a CPU-intensive task. For convenience, we always set the sub to be our rosmaster server. | ||
ROS relies heavily on DNS resolution to map computer hostnames to ip addresses. Normally our router does the DNS resolution, therefore minimal configuration is necessary for network setup. | ROS relies heavily on DNS resolution to map computer hostnames to ip addresses. Normally our router does the DNS resolution, therefore minimal configuration is necessary for network setup. | ||
- | ====== Sub Setup ====== | + | ===== Sub Setup ===== |
Open up your ~/.bashrc and add the following line: | Open up your ~/.bashrc and add the following line: | ||
- | | + | export ROS_MASTER_URI="http://cobalt:11311" |