This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from adamantivm/readme-to-wiki
Updated some readmes
- Loading branch information
Showing
2 changed files
with
6 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1 @@ | ||
# Jmnds Tutorials | ||
|
||
There are three demo programs. First build the jmdns_tutorials package and then: | ||
|
||
**Publishing** | ||
|
||
Start listening in one shell: | ||
|
||
``` | ||
> avahi-browse _ros-master._tcp | ||
``` | ||
|
||
And execute the publisher in another shell: | ||
|
||
``` | ||
./build/install/jmdns_tutorials/bin/jmdns_tutorials --publisher | ||
``` | ||
|
||
**Discovery - Polling** | ||
|
||
Start publishing in one shell: | ||
|
||
``` | ||
> avahi-publish -s DudeMaster _ros-master._tcp 8882 | ||
``` | ||
|
||
And execute polling discovery in another (it will print out the discovered list every second): | ||
|
||
``` | ||
./build/install/jmdns_tutorials/bin/jmdns_tutorials --polling | ||
``` | ||
|
||
**Discovery - Callback** | ||
|
||
As above, but start the discovery handler: | ||
|
||
``` | ||
./build/install/jmdns_tutorials/bin/jmdns_tutorials --polling | ||
``` | ||
|
||
|
||
For instructions, see [the zerconf_jmdns_suite package ROS wiki](http://wiki.ros.org/zeroconf_jmdns_suite). |