Aller au contenu principal

Premiers pas avec HDDS

Bienvenue dans HDDS, un middleware DDS (Data Distribution Service) haute performance ecrit entierement en Rust. Ce guide vous aidera a demarrer rapidement.

Demarrage rapide

# Cloner HDDS
git clone https://git.hdds.io/hdds/hdds.git

# Dans le Cargo.toml de votre projet, ajoutez :
# hdds = { path = "../hdds/crates/hdds" }
use hdds::{Participant, TransportMode, Result};

fn main() -> Result<()> {
// Create a participant on domain 0
let participant = Participant::builder("my_app")
.domain_id(0)
.with_transport(TransportMode::UdpMulticast)
.build()?;

// Create a topic
let topic = participant.topic::<Temperature>("sensor/temp")?;

// Create a publisher and write data
let writer = topic.writer().build()?;
writer.write(&Temperature { value: 23.5 })?;

Ok(())
}

Et ensuite ?

Apprendre les bases

Comprendre les concepts DDS et les fondamentaux du protocole RTPS.

Installer HDDS

Installez HDDS sur Linux, macOS ou Windows.

Construire quelque chose

Suivez notre tutoriel Hello World pas a pas.

Pourquoi HDDS ?

CaracteristiqueHDDSFastDDSCycloneDDSRTI Connext
LangageRust purC++CC/C++
Surete memoireGarantieManuelleManuelleManuelle
LatenceSub-microseconde~1-5 us~2-10 us~1-5 us
Zero-copyOuiPartielPartielOui
Multi-langageRust, C, C++, PythonC++, PythonC, PythonC, C++, Java, C#, Python
LicenceApache 2.0Apache 2.0Eclipse 2.0Commerciale

Vue d'ensemble de l'architecture