pub struct Ros2TopicConfig {
pub topic: String,
pub message_type: String,
pub direction: Ros2Direction,
pub output: Option<String>,
pub input: Option<String>,
pub qos: Option<Ros2QosConfig>,
}Expand description
Configuration for a single ROS2 topic in multi-topic mode.
Fields§
§topic: StringROS2 topic name.
message_type: StringROS2 message type (e.g. “geometry_msgs/Twist”).
direction: Ros2DirectionDirection: subscribe or publish.
output: Option<String>Maps to an dora output id (for subscribe direction).
input: Option<String>Maps to an dora input id (for publish direction).
qos: Option<Ros2QosConfig>Per-topic QoS override.
Trait Implementations§
Source§impl Clone for Ros2TopicConfig
impl Clone for Ros2TopicConfig
Source§fn clone(&self) -> Ros2TopicConfig
fn clone(&self) -> Ros2TopicConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Ros2TopicConfig
impl Debug for Ros2TopicConfig
Source§impl<'de> Deserialize<'de> for Ros2TopicConfig
impl<'de> Deserialize<'de> for Ros2TopicConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Ros2TopicConfig
impl JsonSchema for Ros2TopicConfig
Source§fn schema_id() -> Cow<'static, str>
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
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
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 moreAuto Trait Implementations§
impl Freeze for Ros2TopicConfig
impl RefUnwindSafe for Ros2TopicConfig
impl Send for Ros2TopicConfig
impl Sync for Ros2TopicConfig
impl Unpin for Ros2TopicConfig
impl UnsafeUnpin for Ros2TopicConfig
impl UnwindSafe for Ros2TopicConfig
Blanket Implementations§
impl<T> Allocation for T
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