Skip to content

Can I use cpp programmer as a publisher and rust program as a subscriber? #480

Answered by elfenpiff
XiaoPengYouCode asked this question in Q&A
Discussion options

You must be logged in to vote

@XiaoPengYouCode @Chaoses-Ib

With the introduction of the C++ and C language binding, we wanted to make it work first reliable in the language itself and then focus on cross language use-cases. So at the moment you can use iceoryx2 only for Rust 2 Rust or C/C++ to C/C++ communication.

But by utilizing the internal Rust API you can establish a communication between C++ and Rust - it is internal and only a temporary solution!

// Rust part
struct TransmissionData {
  //...
}

let mut type_details = TypeDetail::__internal_new<TransmissionData>(TypeVariant::FixedSize);
type_details.type_name = "TransmissionData"; // set here the type name to the C++ compiler output of `typeid(TransmissionData)…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by XiaoPengYouCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants