pub struct Node { /* private fields */ }Expand description
A ROS 2 node.
Implementations§
Source§impl Node
impl Node
Sourcepub fn expand(&self, topic: &str) -> Result<String>
pub fn expand(&self, topic: &str) -> Result<String>
The fully qualified name of a topic or service of this node
(expand_topic_name).
Sourcepub fn create_publisher(
&self,
topic: &str,
ty: &MessageType,
qos: &QosProfile,
extra: &UserData,
) -> Result<RosPublisher>
pub fn create_publisher( &self, topic: &str, ty: &MessageType, qos: &QosProfile, extra: &UserData, ) -> Result<RosPublisher>
A writer of the ROS 2 topic topic (expanded for this node) of
message type ty, with the QoS of qos. Its USER_DATA is
typehash=...; and the entries of extra.
Sourcepub fn create_subscription(
&self,
topic: &str,
ty: &MessageType,
qos: &QosProfile,
extra: &UserData,
) -> Result<RosSubscription>
pub fn create_subscription( &self, topic: &str, ty: &MessageType, qos: &QosProfile, extra: &UserData, ) -> Result<RosSubscription>
A reader of the ROS 2 topic topic (expanded for this node) of
message type ty, as Self::create_publisher a writer.
Sourcepub fn create_writer(
&self,
dds_topic: &str,
ty: &MessageType,
qos: &QosProfile,
extra: &UserData,
) -> Result<NodeWriter>
pub fn create_writer( &self, dds_topic: &str, ty: &MessageType, qos: &QosProfile, extra: &UserData, ) -> Result<NodeWriter>
A writer of DDS topic dds_topic of ty, counted as this node’s:
for the topics of services (rq/, rr/, service_to_dds) and
others the helpers do not make.
Sourcepub fn create_reader(
&self,
dds_topic: &str,
ty: &MessageType,
qos: &QosProfile,
extra: &UserData,
) -> Result<NodeReader>
pub fn create_reader( &self, dds_topic: &str, ty: &MessageType, qos: &QosProfile, extra: &UserData, ) -> Result<NodeReader>
A reader of DDS topic dds_topic of ty, counted as this node’s.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Node
impl !UnwindSafe for Node
impl Forget for Node
impl Freeze for Nodewhere
*const ArcInner<Context> is !null: Freeze,
PhantomData<ArcInner<Context>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Nodewhere
*const ArcInner<Context> is !null: UnsafeUnpin,
PhantomData<ArcInner<Context>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more