Skip to content

Commit

Permalink
apply changes on reorganized files (#3858) (#3892)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5c8a652)

Co-authored-by: Matthew Foran <[email protected]>
  • Loading branch information
mergify[bot] and mjforan authored Aug 30, 2023
1 parent a29c536 commit cd5a22b
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 cd5a22b

Please sign in to comment.