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.
pub fn create_ros_topic(
&self,
name: &str,
type_name: &str,
qos: QosPolicies,
topic_kind: TopicKind
) -> Result<Topic, Error>
pub fn create_ros_topic(
&self,
name: &str,
type_name: &str,
qos: QosPolicies,
topic_kind: TopicKind
) -> Result<Topic, Error>
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 WithKeysummary 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}