Skip to content

Commit

Permalink
apply changes on reorganized files (ros2#3858)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjforan committed Aug 30, 2023
1 parent adb2427 commit 5c8a652
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,16 @@ In ROS 1:
.. code-block:: python
pub = rospy.Publisher('chatter', String)
# or
pub = rospy.Publisher('chatter', String, queue_size=10)
In ROS 2:

.. code-block:: python
pub = node.create_publisher(String, 'chatter')
pub = node.create_publisher(String, 'chatter', rclpy.qos.QoSProfile())
# or
pub = node.create_publisher(String, 'chatter', 10)
Creating a Subscriber
^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -117,12 +121,16 @@ In ROS 1:
.. code-block:: python
sub = rospy.Subscriber('chatter', String, callback)
# or
sub = rospy.Subscriber('chatter', String, callback, queue_size=10)
In ROS 2:

.. code-block:: python
sub = node.create_subscription(String, 'chatter', callback)
sub = node.create_subscription(String, 'chatter', callback, rclpy.qos.QoSProfile())
# or
sub = node.create_subscription(String, 'chatter', callback, 10)
Creating a Service
^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 5c8a652

Please sign in to comment.