In this section, we will cover the simple discovery protocol and the use of domain IDs.
Note
Make sure to open new terminal windows with clean environments to avoid potential conflicting environment issues.
Terminal 1: Turtlesim Node | Terminal 2: Command Line Tools |
Start the demo Turtlesim with a unique namespace:
Make sure to keep the forward slash at the beginning of the namespace argument. |
Restart the daemon, to reload the clean environment, and make sure you can see the Turtlesim nodes:
|
Get into pairs or a small group. Each group will have its own domain. Set your domain ID and restart the Turtlesim:
|
Set the domain ID, restart the daemon, and make sure that only your team's nodes are on that domain.
|
Keep the node running |
Now you can drive your robot and/or your partner's robot:
|