Skip to main content

Ros2BridgeConfig

Struct Ros2BridgeConfig 

Source
pub struct Ros2BridgeConfig {
Show 13 fields pub transport: Ros2TransportConfig, pub topic: Option<String>, pub message_type: Option<String>, pub direction: Ros2Direction, pub topics: Option<Vec<Ros2TopicConfig>>, pub service: Option<String>, pub service_type: Option<String>, pub action: Option<String>, pub action_type: Option<String>, pub role: Option<Ros2Role>, pub qos: Ros2QosConfig, pub namespace: String, pub node_name: Option<String>,
}
Expand description

ROS2 bridge configuration for declarative ROS2 bridging.

This allows nodes to interact with ROS2 topics, services, and actions without writing any custom code. The framework spawns a bridge binary that handles the ROS2 DDS communication and Arrow data conversion.

Exactly one of topic, topics, service, or action must be set.

Fields§

§transport: Ros2TransportConfig

Native transport used to communicate with the ROS2 graph.

Defaults to the existing DDS implementation.

§topic: Option<String>

ROS2 topic name (e.g. “/camera/image_raw”). Mutually exclusive with topics, service, action.

§message_type: Option<String>

ROS2 message type (e.g. “sensor_msgs/Image”). Required when topic is set.

§direction: Ros2Direction

Direction: subscribe (ROS2 -> Dora) or publish (Dora -> ROS2). Defaults to subscribe. Only used with topic/topics.

§topics: Option<Vec<Ros2TopicConfig>>

Multiple topics on a single ROS2 node context. Mutually exclusive with topic, service, action.

§service: Option<String>

ROS2 service name (e.g. “/add_two_ints”). Mutually exclusive with topic, topics, action.

§service_type: Option<String>

ROS2 service type (e.g. “example_interfaces/AddTwoInts”). Required when service is set.

§action: Option<String>

ROS2 action name (e.g. “/navigate”). Mutually exclusive with topic, topics, service.

§action_type: Option<String>

ROS2 action type (e.g. “nav2_msgs/NavigateToPose”). Required when action is set.

§role: Option<Ros2Role>

Role: client or server. Required for service and action.

§qos: Ros2QosConfig

QoS policies applied to all topics (can be overridden per-topic).

§namespace: String

ROS2 namespace (default: “/”).

§node_name: Option<String>

ROS2 node name. Defaults to the dora node id.

Trait Implementations§

Source§

impl Clone for Ros2BridgeConfig

Source§

fn clone(&self) -> Ros2BridgeConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Ros2BridgeConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Ros2BridgeConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Ros2BridgeConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for Ros2BridgeConfig

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl Serialize for Ros2BridgeConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

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

Source§

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>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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