1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! # moqros
//!
//! Stream ROS 2 `sensor_msgs/Image` topics over [Media over QUIC](https://moq.dev).
//!
//! Images are converted to I420, encoded (VP8 via libvpx by default, or H.264 via
//! Cisco's OpenH264 binary with the `h264` feature) and published as
//! [hang](https://docs.rs/hang) broadcasts, the format played by the `@moq/watch`
//! web component. The reverse direction (MoQ -> decoded images) is also provided.
//!
//! The core API is ROS-independent:
//!
//! ```no_run
//! # async fn run(images: Vec<moqros::Image>) -> moqros::Result<()> {
//! let config = moqros::ClientConfig::new("http://localhost:4443/anon".parse().unwrap());
//! let publisher = moqros::Publisher::connect(&config)?;
//! let mut camera = publisher.create_image_broadcast("camera", Default::default())?;
//! for image in &images {
//! camera.publish(image)?;
//! }
//! # Ok(()) }
//! ```
//!
//! Enable the `ros` feature for [`ros`] bridges built on r2r.
// On docs.rs, label feature-gated items with the feature they need.
pub use ;
pub use set_openh264_library;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
/// Re-exported so applications can name hang/moq types without version skew.
pub use hang;
pub use Url;