Aller au contenu principal

Premiers pas avec HDDS

Bienvenue dans HDDS, un middleware DDS (Data Distribution Service) haute performance écrit entièrement en Rust. Ce guide vous aidera à démarrer rapidement.

Démarrage 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 à participant on domain 0
let participant = Participant::builder("my_app")
.domain_id(0)
.with_transport(TransportMode::UdpMulticast)
.build()?;

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

// Create à 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 à pas.

Pourquoi HDDS ?

CaractéristiqueHDDSFastDDSCycloneDDSRTI Connext
LangageRust purC++CC/C++
Sûreté mémoireGarantieManuelleManuelleManuelle
LatenceSub-microseconde~1-5 us~2-10 us~1-5 us
Zéro-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