pub struct RosParticipant { /* private fields */ }
👎Deprecated since 0.8.5: Use crate ros2-client instead.
Expand description

RosParticipant sends and receives other participants information in ROS2 network

Implementations§

source§

impl RosParticipant

source

pub fn new() -> Result<Self, CreateError>

👎Deprecated since 0.8.5: Use crate ros2-client instead.
source

pub fn from_domain_participant( domain_participant: DomainParticipant ) -> Result<Self, CreateError>

👎Deprecated since 0.8.5: Use crate ros2-client instead.
source

pub fn new_ros_node( &self, name: &str, namespace: &str, options: NodeOptions ) -> Result<RosNode, CreateError>

👎Deprecated since 0.8.5: Use crate ros2-client instead.

Create a new ROS2 node

source

pub fn handle_node_read(&mut self) -> Vec<ROSParticipantInfo>

👎Deprecated since 0.8.5: Use crate ros2-client instead.
source

pub fn clear(&mut self)

👎Deprecated since 0.8.5: Use crate ros2-client instead.

Clears all nodes and updates our RosParticipantInfo to ROS2 network

source

pub fn domain_id(&self) -> u16

👎Deprecated since 0.8.5: Use crate ros2-client instead.
source

pub fn discovered_topics(&self) -> Vec<DiscoveredTopicData>

👎Deprecated since 0.8.5: Use crate ros2-client instead.
source

pub fn add_node_info(&mut self, node_info: NodeInfo)

👎Deprecated since 0.8.5: Use crate ros2-client instead.
source

pub fn remove_node_info(&mut self, node_info: &NodeInfo)

👎Deprecated since 0.8.5: Use crate ros2-client instead.
source

pub fn get_all_discovered_external_ros_node_infos( &self ) -> HashMap<Gid, Vec<NodeInfo>>

👎Deprecated since 0.8.5: Use crate ros2-client instead.
source

pub fn get_all_discovered_local_ros_node_infos( &self ) -> HashMap<String, NodeInfo>

👎Deprecated since 0.8.5: Use crate ros2-client instead.
source

pub fn get_ros_participant_info(&self) -> ROSParticipantInfo

👎Deprecated since 0.8.5: Use crate ros2-client instead.

Gets our current participant info we have sent to ROS2 network

Trait Implementations§

source§

impl Clone for RosParticipant

source§

fn clone(&self) -> RosParticipant

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Evented for RosParticipant

source§

fn register( &self, poll: &Poll, token: Token, interest: Ready, opts: PollOpt ) -> Result<()>

Register self with the given Poll instance. Read more
source§

fn reregister( &self, poll: &Poll, token: Token, interest: Ready, opts: PollOpt ) -> Result<()>

Re-register self with the given Poll instance. Read more
source§

fn deregister(&self, poll: &Poll) -> Result<()>

Deregister self from the given Poll instance Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V