Skip to content

Commit

Permalink
Fixed it so code showed up right
Browse files Browse the repository at this point in the history
  • Loading branch information
hman523 committed Jul 20, 2020
1 parent 672a9b8 commit 73b0bf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/participant.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ When using connextdds-py, one of the first things you'll need is to
make a participant object. To create a participant, all you need to
do is import the module and then create the object. This can be seen
in the code below.

.. code-block:: python
import rti.connextdds as dds
DOMAIN_ID = 0 # Could be anything, I just chose 0
participant = dds.DomainParticipant(DOMAIN_ID)
Optionally, you can also create a participant using a with statement.

.. code-block:: python
import rti.connextdds as dds
Expand All @@ -24,6 +26,7 @@ Optionally, you can also create a participant using a with statement.
Additionally, you can supply an additional parameter to specify the qos.
For example, if you would like to have a participant with a quicker
shutdown cleanup period, you can follow the code below.

.. code-block:: python
import rti.connextdds as dds
Expand Down

0 comments on commit 73b0bf4

Please sign in to comment.