The cyclonedds command line tool

Included with the cyclonedds Python package is the cyclonedds command line tool.

The command line tool provides a quick insight into what your DDS dataspace currently looks like. It allows you to verify that the public view of your applications matches what you had intended.

The following is a list of the cyclonedds subcommands:

  • cyclonedds --help: Shows the help for the cyclonedds subcommands.

  • cyclonedds ls: Shows the entities and their QoS settings in your DDS system.

  • cyclonedds ps: Lists the applications in your DDS system.

  • cyclonedds typeof: Shows the type(s) of a topic in your system.

  • cyclonedds subscribe: Dynamically subscribes to a topic and displays the data as it arrives.

  • cyclonedds publish: Dynamically builds a REPL with datatypes and a writer for a topic and displays the data as it arrives.

  • cyclonedds performance: A front-end to ddsperf with four modes: publish, subscribe, ping and pong.

The help screen shows the available commands:

``cyclonedds --help``

cyclonedds ls

The ls subcommand shows the entities and their QoS settings in your DDS system.

``cyclonedds ls --help``

The following screen shows the output from cyclonedds ls, while running the Python Vehicle example in the background:

``cyclonedds ls --suppress-progress-bar --force-color-mode``

cyclonedds ps

The ps subcommand lists the applications in your DDS system. Note: This depends on ‘Participant Properties’, which are known as “QoS properties” for DDS participants (merged into CycloneDDS version 0.10.0).

``cyclonedds ps --help``

The following screen shows the output from cyclonedds ps, while running the Python Vehicle example in the background:

``cyclonedds ps --suppress-progress-bar --force-color-mode``

cyclonedds typeof

The typeof subcommand shows the type(s) of a topic in your system.

For XTypes, it is possible to have more than one type for each topic that exists, while maintaining compatability. The types are represented in IDL. For information on the XTypes specification, refer to: :ref:`https://www.omg.org/spec/DDS-XTypes/`_.

``cyclonedds typeof --help``

The following example screen shows the output from the Vehicle example:

``cyclonedds typeof Vehicle --suppress-progress-bar --force-color-mode``

cyclonedds subscribe

The subscribe subcommand dynamically subscribes to a topic and displays the data as it arrives. The type is discovered in a similar manner as typeof.

``cyclonedds subscribe --help``

The following example screen shows the output from the Vehicle example:

``timeout -s INT 10s cyclonedds subscribe Vehicle --suppress-progress-bar --force-color-mode``

cyclonedds publish

The publish subcommand dynamically builds a REPL with datatypes and a writer for a topic and displays the data as it arrives. The type is discovered in a similar manner as typeof.

``cyclonedds publish --help``

cyclonedds performance

The performance subcommand is a front-end to ddsperf with four modes: publish, subscribe, ping and pong.

``cyclonedds performance --help``

The following example screen shows a performance-run in the cyclonedds performance subscribe mode, rendered with cyclonedds performance publish running in the background.

``cyclonedds performance --duration 21s --render-output-once-on-exit --force-color-mode subscribe --triggering-mode waitset``