Jump to content
OpenSplice DDS Forum

Search the Community

Showing results for tags 'c++'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • About OpenSplice DDS
    • News and Events
    • Site Feedback
  • Using OpenSplice DDS
    • General
    • Troubleshooting
  • Understanding OpenSplice DDS
    • OpenSplice DDS Slideshows
    • OpenSplice DDS Movies
  • Community
    • Project: SIMD
    • Project: CamelOS
    • Project: DDS Touchstone
    • Project: RESTful DDS
    • Mac OS X

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Found 12 results

  1. I am having issues where data is only being sent if writer are being kept alive for unknown periods of time e.g. the following does not work. { Data data; dds::pub::DataWriter<Data> writer = ... create the writer ... writer << data; } If the writer is let to persist for longer then the data is sent but in the case where the writer is destroyed "shortly" after the data is written no data is sent. Is that expected behavior or a bug. I would expect any data to be sent independent of when the writer is destructed. Thanks, Harald
  2. I just started working with the OpenSplice Community edition, while things are running fine when executing normally. Creating a domain participant fails when running under the debugger. We usually build using ReleaseWithDebugSymbols. This is the first time I have seen this kind of difference in behavior. What causes this ? Not being able to use the debugger puts quite a damper on things. This is with the latest version of the community edition (64bit binary download), VS2017, Windows 7 Thank you, Harry
  3. rdepeter

    Interop Issue

    Hi, I'm testing interoparability between different DDS implementations. For testing purpose I've implemented an example using the Community Edition from the installer OpenSpliceDDSV6.4.140407OSS-HDE-x86_64.linux-gcc4.6-glibc2.15.tgz My publish/subscribe C++ example works, if I only use the OpenSplice Community Edition (or only use one of the other implementations) If I try to mix with RTI Community Edition 5.2.0 (64 bit) or OpenDDS 3.7 (32 bit), then I get no communication, but following attached warnings in the the ospl-info.log. I use the predefined ospl_sp_ddsi.xml configuration. Switching <StandardsConformance> from lax to pedantic or strict has no effect. Does anybody has an idea? Thanks, Peter. ======================================================================================== Report : WARNING Date : Di Nov 17 09:15:26 CET 2015 Description : malformed packet received from vendor 1.3 state header <52545053 02020103 01030022 195b57e2 6f910000 15050000 00001000 00000000> (note: maybe partially bswap'd) Node : spm-devel01 Process : publisher <9868> Thread : recv 7fbf81769700 Internals : V6.4.140407OSS/3b83e82/3b83e82/ddsi2/q_receive.c/2297/0/1447748126.137497759 ======================================================================================== Report : WARNING Date : Di Nov 17 09:17:12 CET 2015 Description : malformed packet received from vendor 1.1 state parse:acknack <52545053 02010101 ce21c60a fb740000 01000000 0e010c00 1983a999 00000116 @0x24 06011800 c7040000 c2040000 00000000 00000000 00000000 05000000> (note: maybe partially bswap'd) {{6,1,24},4c7,4c2,0,0} Node : spm-devel01 Process : publisher <9975> Thread : recv 7f8fdfa34700 Internals : V6.4.140407OSS/3b83e82/3b83e82/ddsi2/q_receive.c/2403/0/1447748232.138365177 ======================================================================================== ======================================================================================== Report : WARNING Date : Di Nov 17 09:17:13 CET 2015 Description : SPDP (vendor 1.1): invalid qos/parameters Node : spm-devel01 Process : publisher <9975> Thread : dq.builtins 7f8fdfa67700 Internals : V6.4.140407OSS/3b83e82/3b83e82/ddsi2/q_ddsi_discovery.c/683/0/1447748233.951235728 ========================================================================================
  4. Hi, The documentation for `DomainParticipantFactory.create_participant(...)` says this about the `domainId` parameter: So does that mean you cannot choose a domain ID which is not in the configuration file? Is there some other way to create a participant in a domain with an ID that is chosen without changing a configuration file? In our use case we'd like to set the `domainId` based on an environment variable. This is generally useful, but it is specifically useful for to scenarios like running tests in parallel in different domains to avoid cross talk. Thanks,
  5. Hello, I'm trying to convert some code using the old C++ interface (SACPP?) to the new DDS-PSM-Cxx (isocpp?) interface, and I'm facing some difficulties. The interface code uses some tricks to be able to use either OpenSplice or RTI under the hood of a public interface. For instance the public interfaces passes around an opaque pointer containing the DDS::DomainParticipant * participant; in its specific implementation. I've been trying to replace the participant with : dds::domain::DomainParticipant *participant(new dds::domain::DomainParticipant(0)); But apparently this is not valid code, new() is a private operator. Which leads me to some further questions : - is it possible to pass around an opaque pointer into a dds::domain::DomainParticipant - I assume creating the same dds::domain::DomainParticipant dp(0); in different parts of the code gets me a reference on the same object each time, or is this harmful ? Thank you
  6. Hi, I am trying to use OpenSplice RMI architecture for interprocess communication in a C++ application. I am wondering how I can define an interface which its parameter is a pointer? I need to have a general interface and pass a pointer to the base class as an input parameter. However it seems that in idl file there is no way to define a pointer type. Any advice will be greatly appreciated. Cheers
  7. I am developing a C++ windows application with Qt and I want to use OpenSplice DDS in this application. I have tried OpenSplice DDS Version 6.4 for vs2012 and vs2013 for my application with no success. There are some linker errors using these versions in Qt, even for a simple hello world application. All of the linker errors are like this: undefined reference to `_imp___ZTVN3DDS8ListenerE' After spending a lot of time on this problem, I ended up with the conclusion that the libraries are built to be used only in VS and it's not possible to use them in a Qt application. I was wondering if anyone could help me on this. Is there any way to use OpenSplice DDS in Qt for windows?
  8. Hi all, I am trying to develope a proof of concept with OpenSplice and I think is quite similar as the Throughput example that is provided with OpenSplice community edition. I'm trying to create a stream of IDL type sequences with considerable amount of data and frequency per sample with reliable delivery. Should I use OpenSplice DDS V6 Sreams for these requirements? First I am thinking to use the OpenSplice Community Edition Version 6.x for Linux kernel for the Reader and the Writer and then changing the writer to OpenSplice Community Edition Version 6.x for Raspberry Pi (probably the effort spent with is compatible in both). I noticed that the provided example the samples could arrive out of order and the ariginal sample could be splited and delivered separately. I usually use the example driven approach to get things done, therefore if someone can provide me some tips and examples to finish the concept would be awesome. Thanks in advance, JoãoMSM.
  9. Hi, What is the way to instantiate sequences in C++? I have found it in Java (pretty simple with arrays) but I did not find any documentation or example for my problem. Let's say I have this IDL module HelloWorldData { struct Msg { /** User ID */ long userID; /** message */ string message; }; #pragma keylist Msg userID typedef sequence<Msg> seq_msg; struct OtherMsg { long userID; string message; seq_msg mySeq; }; #pragma keylist OtherMsg userID }; And this code Msg msg1; msg1.userID = 10; msg1.message = "aaa"; Msg msg2; msg2.userID = 20; msg2.message = "bbb"; OherrMsg msgInstance; msgInstance.userID = 1; msgInstance.message = DDS::string_dup("Hello World"); How do I instantiate my sequence in C++ since mySeq is not generated as array like in java? msgInstance.mySeq = ? Thank you
  10. Hi ! I'm trying to get a DomainParticipant build, however, I got a very annoying error I'm fighting with since some time. So I came here as I really am out of solution for my problem ... I got the following code : DDS::DomainParticipantFactory_ptr dpf = DDS::DomainParticipantFactory::get_instance(); const char* domain = "file://home/xaltar/PrismTech/HDE/x86.linux2.6/etc/config.ospl.xml"; DDS::DomainParticipant_var dpv = dpfp->create_participant(domain, PARTICIPANT_QOS_DEFAULT, NULL, 0); if(dpv.in() == NULL) { std::cout << "\nIsNull" << std::endl; } else { DDS::DomainParticipantFactory_var dpfv = DDS:DomainParticipantFactory::get_instance(); } The problem is that my Domain Participant Var is null, and I can't get anything from it. When I get the instance of the Domain Participant Factory Var, I got an error of "CORBA::NO_IMPLEMENT". And I can't help why ... Do you happen to know ?
  11. Hi, We have been using Opensplice Community Edition 5.5.1 for some time now, and were wondering if there was any way to have the serialization and deserialization methods exposed for modification or add-ons.
  12. Dear All, Many of you are probably aware of the existence of a newly adopted standard for the DDS C++ API, namely the DDS-PSM-Cxx. I've just posted an overview of the some of its nicest features at http://bit.ly/simd-cxx-10a If you want to experiment with the new C++ API for DDS you can with simd-cxx v1.0-alpha which is available at https://github.com/kydos/simd-cxx Good Hacking! A+