C++

6 posts / 0 new
Last post
Offline
Last seen: 2 months 2 weeks 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: 3 weeks 3 days ago
Joined: 01/22/2021
Posts: 6
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: 11 months 4 weeks 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: 1 year 11 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: 1 year 11 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 5 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: 1 year 6 months 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: 4 years 9 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).

3 posts / 0 new
Last post
Offline
Last seen: 2 years 1 month ago
Joined: 10/01/2015
Posts: 17
How to properly zero-initialize a generated type (traditional C++)
There appears no way to zero-initialize a generated struct that contains a sequence.
Keywords:
19 posts / 0 new
Last post
bhanupratap's picture
Offline
Last seen: 5 years 6 months ago
Joined: 10/29/2015
Posts: 10
Issues in building Integrate Medical Devices RTI Connext DDS in windows

I had installed Connext DDS Professional  5.2 on windows 8.1 machine,  and cloned code from git repositry (https://github.com/rticommunity/rticonnextdds-usecases-medical/tree/master/MedicalDevices)  of RTI Connext DDS Use Case: Medical Device Connectivity and followed the steps mentioned to build the code.

First step is "

Organization:
Subscribe to RSS - C++