docs: small improvements

This commit is contained in:
Oleg Kalachev
2019-02-13 12:21:27 +03:00
parent e6ba681298
commit 24e8db8889
2 changed files with 9 additions and 1 deletions

View File

@@ -51,6 +51,9 @@ from std_msgs.msg import String
# ...
foo_pub = rospy.Publisher('/foo', String, queue_size=1) # creating a Publisher
# ...
foo_pub.publish(data='Hello, world!') # posting the message
```
@@ -103,4 +106,4 @@ Working on several PCs
Main article: http://wiki.ros.org/ROS/Tutorials/MultipleMachines.
The advantage of using ROS is the possibility of distributing the nodes across several PCs in the network. For example, a node that recognizes an image may be run on a more powerful PC; the node that controls the copter may be run directly on a Raspberry Pi connected to the flight controller, etc.
The advantage of using ROS is the possibility of distributing the nodes across several PCs in the network. For example, a node that recognizes an image may be run on a more powerful PC; the node that controls the copter may be run directly on a Raspberry Pi connected to the flight controller, etc.

View File

@@ -14,6 +14,8 @@ ROS уже установлен на [образе для RPi](microsd_images.md
Для использования ROS на компьютере рекомендуется ОС Ubuntu Linux (либо виртуальная машина, например [Parallels Desktop Lite](https://itunes.apple.com/ru/app/parallels-desktop-lite/id1085114709?mt=12) или [VirtualBox](https://www.virtualbox.org)).
> **Note** Для дистрибутива ROS Kinetic рекомендуется Ubuntu версии 16.04.
Концепции
---
@@ -51,6 +53,9 @@ from std_msgs.msg import String
# ...
foo_pub = rospy.Publisher('/foo', String, queue_size=1) # создаем Publisher'а
# ...
foo_pub.publish(data='Hello, world!') # публикуем сообщение
```