From 24e8db8889089b292b95fb02d598f2046a85634c Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Wed, 13 Feb 2019 12:21:27 +0300 Subject: [PATCH] docs: small improvements --- docs/en/ros.md | 5 ++++- docs/ru/ros.md | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/en/ros.md b/docs/en/ros.md index 2cbef930..5013a0e3 100644 --- a/docs/en/ros.md +++ b/docs/en/ros.md @@ -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. \ No newline at end of file +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. diff --git a/docs/ru/ros.md b/docs/ru/ros.md index 55410484..8d05c9dc 100644 --- a/docs/ru/ros.md +++ b/docs/ru/ros.md @@ -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!') # публикуем сообщение ```