C++

3 posts / 0 new
Last post
Offline
Last seen: 2 months 1 week ago
Joined: 01/22/2021
Posts: 8
Sending Binary Data

I'm helping a group switch to using Connext DDS for sending messages, but they aren't ready to switch over completely and use IDL types. Is there a best way to send binary data on a topic?

 

Unless I'm missing something, the only options seems to be Dynamic Data or creating an IDL type for them with an unbounded string. Is one of these better than the other? Are there any other options?

4 posts / 0 new
Last post
Offline
Last seen: 2 months 1 week ago
Joined: 09/13/2021
Posts: 2
Topics, identified by name, transported on specific multicast groups.

Hi.
I’m hoping someone will be able to give me a bit of advice.
In code I’m trying to set up a QoS policy that sets specific topic names to be transported on particular multicast groups. For example, Topic1 is transported on 239.255.100.101 and topic2 on 239.255.100.102.
I’d like to be able to define common code that generates a policy that includes the multicast group to topic names for a number of topics to allow us to do a bit of code reuse.
From doing a bit of reading online it looks like it can be done but I’m just not entirely sure how.

6 posts / 0 new
Last post
Offline
Last seen: 9 months 5 hours ago
Joined: 01/05/2021
Posts: 4
V6.0.1 C++ Request Reply example : undefined reference error after make -f make/makefile_RequestReplyPrimes_x64Linux4gcc7.3.0

Hello,

i encounter "undefined reference" errors when i launch the make of the C++ request reply example v6.0.1 on Linux.

NB : I don't have any problem when i launch the make of the helloworld publish-subscribe example, every thing else being the same.

Here is the command of the example that i launch.:

Organization:
3 posts / 0 new
Last post
Offline
Last seen: 2 months 1 week ago
Joined: 01/22/2021
Posts: 8
Error with DomainParticipant as a member

I am just starting out with RTI Connext using Modern C++. I'm trying to make a class that has a DomainParticipant and some other stuff and am getting errors.

In Foo.h:

#include "dds/domain/DomainParticipant.hpp" 

class Foo {
public:
	Foo(int32_t domain);
private:
	dds::domain::DomainParticipant part;

And in Foo.cpp:

#include "Foo.h"

Foo::Foo(int32_t domain)
{ }

When I try to compile it (and remember there's literally nothing going on) I get an error at the constructor:

Keywords:
2 posts / 0 new
Last post
Offline
Last seen: 1 year 6 months ago
Joined: 05/20/2020
Posts: 1
Rti dds conversion from C++ to matlab

Hello Everyone,

Class class1;
std::vector<class2>array{x,y,z};
class1.array2(rti::core::vector<class2>(array));

what does the last line mean and how can I change this c++ line to Matlab?
Thanks in advance.

3 posts / 0 new
Last post
His Nerdship's picture
Offline
Last seen: 2 years 5 months ago
Joined: 05/08/2019
Posts: 18
Publisher & subscriber using multiple topic types?

I am working on a project that will send 50+ topic types between device(s) and a central controlling app.

In my experience so far it seems that a matching publisher & subscriber will only work with the same topic type.  I don't want to write publish and subscribe functions specific to each topic (I won't live long enough...).

Organization:
5 posts / 0 new
Last post
His Nerdship's picture
Offline
Last seen: 2 years 5 months ago
Joined: 05/08/2019
Posts: 18
Unreliable connection over WiFi.

I am writing a (modern C++) module to simulate a device that connects to a central registry to send and obtain information.  The registry and device each pass data both ways, so act as both subscribers and publishers.  The device sends the first request message, and the registry returns a suitable response (or should do).

Organization:
2 posts / 0 new
Last post
Reureu's picture
Offline
Last seen: 3 years 11 months ago
Joined: 11/28/2017
Posts: 4
Forward declaration of WaitSet in C++

Hi,

I'm using Connext DDS Pro 5.3.0 with VS 2015/2017.

my C++ code uses dds::core::cond::WaitSetin various places.

I'm cleaning up the include directives, and I have just realized that there is no forward declaration of dds::core::cond::WaitSetin your SDK.

I would expect to find it in  <dds/core/corefwd.hpp>but this file does not contain any forward declaration of WaitSet.

In this file, the only fwd declaration in the cond namespace is

namespace cond

{

9 posts / 0 new
Last post
Offline
Last seen: 2 years 3 weeks ago
Joined: 08/13/2014
Posts: 55
Get data writer's name in received sample

Hi,

I want to get data writer's name in received sample same as what we have in admin console tool (e.g. participant name in sample log). I'm using rti connext modern c++ API version 5.2.0. I search all member functions of sample info class but cannot find anything useful. I know that every writer has an unique ID but it does not help me in this case. Thanks in advance for your help.

Bonjefir

4 posts / 0 new
Last post
Offline
Last seen: 5 years 3 months ago
Joined: 07/26/2016
Posts: 6
Run time error for c++ idl project on machine without visual Studio 2012

Hi,

I am developing application with rti DDS in visual studio 2012 using c# language.

I had included in the solution the C++ project of the idl type and have referrence for it inanother solution project.

When I try to run the app in a machine without visual studio 2012 I get many run time errors of dll not found or its dependencies.
I check it by 'Dependency walker'.

Only if I install VS 2012 errors gone (VS 2015 not solved the problem).

Subscribe to RSS - C++