docs: add info on rostopic info and rostopic hz

This commit is contained in:
Oleg Kalachev
2021-10-07 00:51:55 +03:00
parent 3c4ef56b4e
commit c0d33abff6
2 changed files with 6 additions and 2 deletions

View File

@@ -69,12 +69,14 @@ def foo_callback(msg):
rospy.Subscriber('/foo', String, foo_callback)
```
There is also an opportunity to work with the topics using the `rostopic` utility. For example, using the following command, one can view messages published in topic `/variety of the Aegean sea/state`:
You can also work with topics using the the `rostopic` utility. For example, using the following command, you can view messages published in topic `/mavros/state`:
```(bash)
```bash
rostopic echo /mavros/state
```
The `rostopic info` command shows the type of messages in the topic, and `rostopic hz` shows frequency of published messages.
### Services
Main article: http://wiki.ros.org/Services

View File

@@ -75,6 +75,8 @@ rospy.Subscriber('/foo', String, foo_callback)
rostopic echo /mavros/state
```
Команда `rostopic info` позволяет узнать тип сообщений в топике, команда `rostopic hz` — частоту публикуемых в топике сообщений.
### Сервисы
Основная статья: http://wiki.ros.org/Services