Struct rustdds::ros2::RosParticipant
source · 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
impl RosParticipant
pub fn new() -> Result<Self, CreateError>
👎Deprecated since 0.8.5: Use crate ros2-client instead.
pub fn from_domain_participant( domain_participant: DomainParticipant ) -> Result<Self, CreateError>
👎Deprecated since 0.8.5: Use crate ros2-client instead.
sourcepub fn new_ros_node(
&self,
name: &str,
namespace: &str,
options: NodeOptions
) -> Result<RosNode, CreateError>
👎Deprecated since 0.8.5: Use crate ros2-client instead.
pub fn new_ros_node( &self, name: &str, namespace: &str, options: NodeOptions ) -> Result<RosNode, CreateError>
Create a new ROS2 node
pub fn handle_node_read(&mut self) -> Vec<ROSParticipantInfo>
👎Deprecated since 0.8.5: Use crate ros2-client instead.
sourcepub fn clear(&mut self)
👎Deprecated since 0.8.5: Use crate ros2-client instead.
pub fn clear(&mut self)
Clears all nodes and updates our RosParticipantInfo to ROS2 network
pub fn domain_id(&self) -> u16
👎Deprecated since 0.8.5: Use crate ros2-client instead.
pub fn discovered_topics(&self) -> Vec<DiscoveredTopicData>
👎Deprecated since 0.8.5: Use crate ros2-client instead.
pub fn add_node_info(&mut self, node_info: NodeInfo)
👎Deprecated since 0.8.5: Use crate ros2-client instead.
pub fn remove_node_info(&mut self, node_info: &NodeInfo)
👎Deprecated since 0.8.5: Use crate ros2-client instead.
pub fn get_all_discovered_external_ros_node_infos( &self ) -> HashMap<Gid, Vec<NodeInfo>>
👎Deprecated since 0.8.5: Use crate ros2-client instead.
pub fn get_all_discovered_local_ros_node_infos( &self ) -> HashMap<String, NodeInfo>
👎Deprecated since 0.8.5: Use crate ros2-client instead.
sourcepub fn get_ros_participant_info(&self) -> ROSParticipantInfo
👎Deprecated since 0.8.5: Use crate ros2-client instead.
pub fn get_ros_participant_info(&self) -> ROSParticipantInfo
Gets our current participant info we have sent to ROS2 network
Trait Implementations§
source§impl Clone for RosParticipant
impl Clone for RosParticipant
source§fn clone(&self) -> RosParticipant
fn clone(&self) -> RosParticipant
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RosParticipant
impl RefUnwindSafe for RosParticipant
impl Send for RosParticipant
impl Sync for RosParticipant
impl Unpin for RosParticipant
impl UnwindSafe for RosParticipant
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