pub struct Node { /* private fields */ }
Expand description

Node in ROS2 network. Holds necessary readers and writers for rosout and parameter events topics internally.

These are produced by a Context.

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)

    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 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 Service Client

Arguments
  • service_mapping - ServiceMapping to be used
  • service_name -
  • qos-

Creates ROS2 Service Server

Arguments
  • service_mapping - ServiceMapping to be used. See [Self.create_client].
  • service_name -
  • 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.