Subscribe between different DDS

4 posts / 0 new
Last post
Offline
Last seen: 2 years 8 months ago
Joined: 09/10/2020
Posts: 25
Subscribe between different DDS

I have two different applications that uses two separate instances of DDS. Is there a way to have the DDS subscribe/publish to each other based on certain criteria? What I'm looking to do is have DDS-A send message to DDS-B for specific message type.

Offline
Last seen: 1 month 1 week ago
Joined: 09/23/2018
Posts: 62

There is an Introduction to DDS Seminar that is going live in 20 minutes ...  If you have time,  it might be a good thing to sit in on.

Inside DDS: Introducing Connext DDS Communication Software

https://www.brighttalk.com/webcast/18279/432150?utm_campaign=Developer%20Awareness%20Campaign&utm_medium=email&_hsmi=94938550&_hsenc=p2ANqtz--LgjCsgUCRRWCSasxs0o0gn1SbpdsNtM7EKBMwRCC12Z1T5HmDntbe9OPHlaPfnv5GzIuxdhUypRirMRsgAh64FtFeDg&utm_content=94938550&utm_source=hs_email

I am not sure if that is a generic link if it was specific to me but give it a shot.

To answer your question ... "yes"  :c)

You should start with our Getting Started Guide to get a better idea on how to proceed.  We can then address specific questions.

https://community.rti.com/static/documentation/connext-dds/6.0.1/doc/manuals/connext_dds/getting_started/index.html

 

 

PavelP's picture
Offline
Last seen: 9 months 3 weeks ago
Joined: 07/16/2015
Posts: 1

Hi tpham17. As garyb suggested, you should follow the getting started guide. I just write here the essential steps to get started. You can find details in RTI Documentaion

  1. Clone repository https://github.com/rticommunity/rticonnextdds-getting-started/ where are three samples.
  2. Setup environment variables by running "C:\Program Files\rti_connext_dds-6.0.1\resource\scripts\rtisetenv_x64Win64VS2017.bat"
  3. Create example project by running "rtiddsgen -language c++11 -platform x64Win64VS2017 -create makefiles -create typefiles -d c++11 -ppDisable -example x64Win64VS2017 hello_world.idl" (run the command from the same directory as the hello_world.idl is located). This creates VisualStudio 2017 project files (parameter -example)
  4. Open the *.sln file in Visual Studio 2017. Build projects.
  5. Run subscriber.exe and publisher.exe
  6. Play with the code as you like ;)

You can also check answers to question Issues with Getting Started Intro to Publish/Subscribe.

Offline
Last seen: 2 years 8 months ago
Joined: 09/10/2020
Posts: 25

Thanks! I'll take a look at the guide.