Skip to main content

Crate moqros_cli

Crate moqros_cli 

Source
Expand description

Shared plumbing for the moqros bridge binaries.

Structs§

BroadcastSpec
A broadcast for moqros-sub: BROADCAST[,topic=…][,type=…][,frame_id=…].
PubTopic
What moqros-pub does with one topic.
QosArgs
ROS QoS flags.
RelayArgs
Relay connection flags.
SharedNode
A node shared between spawn_spinner and code that adds subscriptions while it spins.
Spinner
Stops the spawn_spinner thread when dropped.
SubBroadcast
What moqros-sub does with one broadcast.
TopicSpec
A topic for moqros-pub: TOPIC[,format=…][,type=…][,mode=…][,broadcast=…].

Enums§

Format
What moqros-pub sends.

Constants§

DEFAULT_SUB_TOPIC
Topic of a lone broadcast that neither topic= nor --topic names.

Functions§

init
Create the ROS node and parse T from the command line and the node’s ROS parameters.
init_logging
pub_topics
Fill in each topic’s options from the flags: format and mode apply to every topic, while ros_type and broadcast name one topic, so they need exactly one.
spawn_spinner
Spin node on a blocking thread until the returned guard is dropped.
strip_ros_args
Drop the ROS arguments (--ros-args … [--], possibly repeated) from args.
sub_broadcasts
Fill in each broadcast’s options from the flags. topic and ros_type name one broadcast, so they need exactly one. Without either topic= or --topic, a lone broadcast goes to DEFAULT_SUB_TOPIC, and each of several to /moqros/<broadcast>.