cyclonedds | Eclipse Cyclone DDS project | Code Editor library
kandi X-RAY | cyclonedds Summary
kandi X-RAY | cyclonedds Summary
Eclipse Cyclone DDS project
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cyclonedds
cyclonedds Key Features
cyclonedds Examples and Code Snippets
Community Discussions
Trending Discussions on cyclonedds
QUESTION
I use cyclonedds-cxx and their IDL compiler to translate IDL files for the use with cyclonedds-cxx. I have this IDL file:
...ANSWER
Answered 2021-May-18 at 12:38This is all implementation-specific and with the new IDL compiler for Cyclone, the output will change completely, even eliminating most of the generated files.
The copyInFunction
and copyOutFunction
here refer to functions that copy samples from the C++ representation to an internal representation and back. For the initial commit of the C++ API, this internal representation is actually the sample in C representation, after which it gets converted to/from CDR. The new version does away with these functions and avoids this copy.
QUESTION
I am trying to use listeners for publishers in cyclonedds. but CycloneDDS does not have any examples on it. can someone explain how to use them in the code?
From the above link, the publisher sending data part
For this example, we'd like to have a subscriber to actually read our message. This is not always necessary. Also, the way it is done here is just to illustrate the easiest way to do so. It isn't really recommended to do a wait in a polling loop, however.
Please take a look at Listeners and WaitSets for a much better solutions, albeit somewhat more elaborate ones.
...ANSWER
Answered 2021-May-04 at 10:51Listeners are installed by:
QUESTION
I am using CycloneDDS C++ version,
trying to set following QOS to the writer DDS_HISTORY_KEEP_ALL, DDS_DURABILITY_TRANSIENT_LOCAL, DDS_RELIABILITY_RELIABLE
I am trying to set Qos to data writer, in dds publisher
...ANSWER
Answered 2021-Apr-10 at 03:51Error is because QoS is not set properly you can try below code,
Creating a DataWriter with your own QoS
QUESTION
I am using CycloneDDS c++ build.
currently, I am able to publish and subscriber primitive data types.
.idl file contains data structure
How to send an object or publish and subscribe an object in CycloneDDS?
Edited - object = both data ("state") and code ("methods")
...ANSWER
Answered 2021-Mar-29 at 15:41From above comment correct answer is
DDS is intended for distributing data. Distributing objects, as "their states and method implementations", is not described in any of the OMG DDS standards and not natively implemented by any of the DDS implementations
QUESTION
I have project dependency packages in the directory
C:/Users/king/my/mytest/dds
mytest contains folders dds, Source, testapp
I use the following in my cmakelists.txt
...ANSWER
Answered 2021-Mar-26 at 10:31New in version 3.12: Search paths specified in the
_ROOT
CMake variable and the_ROOT
environment variable, whereis the package to be found.
ref: https://cmake.org/cmake/help/latest/command/find_package.html#search-procedure
QUESTION
I am working with Cyclone DDS, and they have two builds, c build (contains multiple files in the bin folder)
and c++ build (contains DLL file in the bin)
after Cyclones DDS installation, I have to set these bin paths in system environment variables.
how can I avoid this? I need to set them in the visual studio 2017 itself. without setting paths in the system environment
or can I copy bin files into my project directory? so that I can use the project file on any PC which has visual studio 2017 without reinstalling CycloneDDS?
...ANSWER
Answered 2021-Mar-12 at 12:24Windows by default will prefer .DLL
files in the same directory as the .EXE
. So while developing, you can put them in your Visual Studio Debug and Release folders. For other people, you include the DLL's in the installer.
The exception is the *140.dll
stuff, for which you need the Visual C++ redistributable. That's installed as part of Visual Studio 2017, but can also be distributed independently (hence the name).
QUESTION
I found RTI DDS and OpenDDS are capable to define nested structures and complex structure in IDL file,
but couldn't find any example for CycloneDDS on defining nested structures/ complex structures in the IDL file, does Cyclone DDS support nested structures in IDL? in the cyclones developer guide they do not mention anything about it.
...ANSWER
Answered 2021-Mar-03 at 06:35It does. It is a standard OMG IDL feature and is the same across all DDS implementations.
QUESTION
I am able to build cycloneDDS for vs2019 and vs2017.
I need to build cycloneDDS for vs2013 express
CMake x64 vs2013
...ANSWER
Answered 2021-Feb-03 at 08:32Cyclone targets C99 but VS2013 is still lacking support for significant parts of that version of the C language.
The probable cause of the specific error you mention is unable to use inline in declaration get error C2054. The workaround given there is worth a try.
QUESTION
I am new to DDS.... so far I have little experience in OpenDDS and CycloneDDS
Is it possible to define a class inside the idle file and have member variables and member methods? or only structure and primitive data types are supported in DDS standards?
...ANSWER
Answered 2021-Jan-19 at 15:55The IDL language is defined in the OMG IDL specification. It consists of a number of building blocks that include Core Data Types, like the structures and primitive data types that you mentioned, and Interfaces, that includes the methods you asked about.
However, only a subset of those building blocks is used by DDS. For the current version 4.2, section 9.3 DDS Profiles defines which of them are relevant for three different levels of support by DDS: Plain DDS, Extensible DDS and DDS over RPC.
You will see that the latter indeed includes Building Block Interfaces - Basic, as you might expect from RPC. However, not all DDS implementations support RPC. Plain DDS and Extensible DDS are more commonly supported and interfaces are not part of that functionality.
Since you asked about this in another question: note that the interface functionality as captured in DDS over RPC is not for the purpose of distributing objects with their methods, but for invoking methods on objects remotely -- as the name Remote Procedure Call implies.
QUESTION
I am new to DDS,I am using CyclonesDDS c++ packages
as I know DDS implementation mechanism is published/subscribe
is it possible to perform a request-response in DDS? like in clenet-server applications?
A client pc will request data then a central pc will respond with data
should I implement it logically in the program? is following way is the optimum method
client PC -> request logic -> client PC publish to a requestData topic
central PC -> waiting for requst topic -> central PC subscribe requestData check if data is requesting
central PC -> response logic -> central PC publish data to a dataWrite topic
client PC -> waiting for data topic -> central PC subscribe dataWrite topic and read data
are there callback functions to perform this?
...ANSWER
Answered 2021-Jan-15 at 05:02Yes, it is possible to implement request-response logic over DDS. In fact, the OMG RPC Over DDS specification defines a Remote Procedure Calls (RPC) framework using the basic building blocks of DDS. That seems to provide what you are looking for.
For some concrete documentation provided by a vendor that implements this kind of logic as part of their product, you could check out the RTI Connext User's Manual Part 4: Request-Reply Communication Pattern.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cyclonedds
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page