-
Notifications
You must be signed in to change notification settings - Fork 81
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 #1664 from knorth55/network-status-skip-interfaces
- Loading branch information
Showing
4 changed files
with
121 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ ROS Packages: | |
jsk_data/index | ||
jsk_tools/index | ||
jsk_topic_tools/index | ||
jsk_network_tools/index |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
================= | ||
jsk_network_tools | ||
================= | ||
|
||
This ROS package includes JSK network tools. | ||
|
||
.. toctree:: | ||
:glob: | ||
:maxdepth: 1 | ||
:caption: scripts | ||
|
||
./scripts/* |
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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# network_status.py | ||
|
||
Publish network status | ||
|
||
```bash | ||
$ rostopic list | ||
/ecublens/docker0/receive | ||
/ecublens/docker0/receive_kbps | ||
/ecublens/docker0/receive_mbps | ||
/ecublens/docker0/transmit | ||
/ecublens/docker0/transmit_kbps | ||
/ecublens/docker0/transmit_mbps | ||
/ecublens/eno1/receive | ||
/ecublens/eno1/receive_kbps | ||
/ecublens/eno1/receive_mbps | ||
/ecublens/eno1/transmit | ||
/ecublens/eno1/transmit_kbps | ||
/ecublens/eno1/transmit_mbps | ||
/ecublens/eno2/receive | ||
/ecublens/eno2/receive_kbps | ||
/ecublens/eno2/receive_mbps | ||
/ecublens/eno2/transmit | ||
/ecublens/eno2/transmit_kbps | ||
/ecublens/eno2/transmit_mbps | ||
/ecublens/lo/receive | ||
/ecublens/lo/receive_kbps | ||
/ecublens/lo/receive_mbps | ||
/ecublens/lo/transmit | ||
/ecublens/lo/transmit_kbps | ||
/ecublens/lo/transmit_mbps | ||
/ecublens/nonlocal/receive | ||
/ecublens/nonlocal/receive_kbps | ||
/ecublens/nonlocal/receive_mbps | ||
/ecublens/nonlocal/transmit | ||
/ecublens/nonlocal/transmit_kbps | ||
/ecublens/nonlocal/transmit_mbps | ||
``` | ||
|
||
## Publishing Topics | ||
|
||
* `/<host name>/<interface name>/receive` | ||
|
||
Amount of receiving data by the interface in bps | ||
|
||
* `/<host name>/<interface name>/receive_kbps` | ||
|
||
Amount of receiving data by the interface in Kbps | ||
|
||
* `/<host name>/<interface name>/receive_mbps` | ||
|
||
Amount of receiving data by the interface in Mbps | ||
|
||
* `/<host name>/<interface name>/transmit` | ||
|
||
Amount of transmitting data by the interface in bps | ||
|
||
* `/<host name>/<interface name>/transmit_kbps` | ||
|
||
Amount of transmitting data by the interface in Kbps | ||
|
||
* `/<host name>/<interface name>/transmit_mbps` | ||
|
||
Amount of transmitting data by the interface in Mbps | ||
|
||
* `/<host name>/nonlocal/receive` | ||
|
||
Amount of receiving data by the non-local interfaces in bps | ||
|
||
* `/<host name>/nonlocal/receive_kbps` | ||
|
||
Amount of receiving data by the non-local interfaces in Kbps | ||
|
||
* `/<host name>/nonlocal/receive_mbps` | ||
|
||
Amount of receiving data by the non-local interfaces in Mbps | ||
|
||
* `/<host name>/nonlocal/transmit` | ||
|
||
Amount of transmitting data by the non-local interfaces in bps | ||
|
||
* `/<host name>/nonlocal/transmit_kbps` | ||
|
||
Amount of transmitting data by the non-local interfaces in Kbps | ||
|
||
* `/<host name>/nonlocal/transmit_mbps` | ||
|
||
Amount of transmitting data by the non-local interfaces in Mbps | ||
|
||
## Parameters | ||
|
||
* `~hz` (`float`, default: `10`) | ||
|
||
Publish frequency | ||
|
||
* `~skip_interfaces` (`List of string`, default: `None`) | ||
|
||
List of skipping interface names | ||
|
||
## Usage | ||
|
||
```bash | ||
rosrun jsk_network_tools network_status.py | ||
``` |
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