Struct rustdds::ros2::RosNode[][src]

pub struct RosNode { /* fields omitted */ }
Expand description

Node in ROS2 network. Holds necessary readers and writers for rosout and parameter events topics internally. Should be constructed using builder.

Implementations

Clears both all reader and writer guids from this node.

Creates ROS2 topic and handles necessary conversions from DDS to ROS2

Arguments

  • domain_participant - DomainParticipant

  • name - Name of the topic

  • type_name - What type the topic holds in string form

  • qos - Quality of Service parameters for the topic (not restricted only to ROS2)

  • topic_kind - Does the topic have a key (multiple DDS instances)? NoKey or WithKey

    summary of all rules for topic and service names in ROS 2 (as of Dec 2020)

  • must not be empty

  • may contain alphanumeric characters ([0-9|a-z|A-Z]), underscores (_), or forward slashes (/)

  • may use balanced curly braces ({}) for substitutions

  • may start with a tilde (~), the private namespace substitution character

  • must not start with a numeric character ([0-9])

  • must not end with a forward slash (/)

  • must not contain any number of repeated forward slashes (/)

  • must not contain any number of repeated underscores (_)

  • must separate a tilde (~) from the rest of the name with a forward slash (/), i.e. ~/foo not ~foo

  • must have balanced curly braces ({}) when used, i.e. {sub}/foo but not {sub/foo nor /foo}

Creates ROS2 Subscriber to no key topic.

Arguments

  • topic - Reference to topic created with create_ros_topic.
  • qos - Should take QOS and use if it’s compatible with topics QOS. None indicates the use of Topics QOS.

Creates ROS2 Subscriber to Keyed topic.

Arguments

  • topic - Reference to topic created with create_ros_topic.
  • qos - Should take QOS and use it if it’s compatible with topics QOS. None indicates the use of Topics QOS.

Creates ROS2 Publisher to no key topic.

Arguments

  • topic - Reference to topic created with create_ros_topic.
  • qos - Should take QOS and use it if it’s compatible with topics QOS. None indicates the use of Topics QOS.

Creates ROS2 Publisher to Keyed topic.

Arguments

  • topic - Reference to topic created with create_ros_topic.
  • qos - Should take QOS and use it if it’s compatible with topics QOS. None indicates the use of Topics QOS.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.