mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 11:43:25 +00:00
docs: add info on rostopic info and rostopic hz
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -75,6 +75,8 @@ rospy.Subscriber('/foo', String, foo_callback)
|
||||
rostopic echo /mavros/state
|
||||
```
|
||||
|
||||
Команда `rostopic info` позволяет узнать тип сообщений в топике, команда `rostopic hz` — частоту публикуемых в топике сообщений.
|
||||
|
||||
### Сервисы
|
||||
|
||||
Основная статья: http://wiki.ros.org/Services
|
||||
|
||||
Reference in New Issue
Block a user