Comments (4)
I've tested your IDL and the generated example works for me. Indeed, changing topicKind
to WITH_KEY and filling the MsgExtended structure. To make sure. Did you use the last code of fastrtpsgen? Are you setting an std::string
larger than 255 characters?
from fast-dds-gen.
Hi,
Thank you for the confirmation. I will check the following points in the test environments and inform you,
a>latest code of fastrtpsgen
b>std::string larger than 255 chars --->This i am sure i didn't. But let me confirm.
Regards,
Viresh
from fast-dds-gen.
Hi, Viresh and I are work to gether. In addition to what Viresh is reporting, we made one additional change. The change is to use the type name as base type name for registering the topic. We still used the derived type message structure for publishing the messages. We made thsi change to acheive communication between derived type publisher and base type subscriber to evaluate type extensibility. Initially, when we simply use the ild file generated code, it works. But the suscriber example generated from the base type ild file doesn't receive messages from the derivce pblisher. From examples and experiments done with RTI Connext code to acheive the same(Derived Pub->Base Sub), we made the change of type name to base type name for registering the topic. After this change, as soon as the publisher recognises a subscriber, it crashes with segmentation fault.
To answer your other questions, the fastrtpsgen is latest version and the string is about 30 characters long.
from fast-dds-gen.
Hi, Seems there copypasta error in the code for generate :: getKeyMaxCdrSerializedSize for inherited type. Look at this:
size_t NetData::position::getKeyMaxCdrSerializedSize(size_t current_alignment)
{
size_t current_align = current_alignment;
current_alignment += NetData::basic_msg::getKeyMaxCdrSerializedSize(current_alignment);
^^^^^^^^^^ - must be current_align
return current_align;
}
from fast-dds-gen.
Related Issues (20)
- bitset implementation HOT 2
- Use virtual or override, not both HOT 2
- C++: Incorrect C++ includes generated for IDLs which include enum-only IDLs HOT 1
- How to define enumeration with int value in IDL? HOT 1
- fastddsgen template asks for headers which doesn't exist or which are misplaced in the install process HOT 1
- fastddsgen -d [19844] HOT 2
- undefined reference to `performance_test::msg::FastDDSGen::PointCloud4m::PointCloud4m() HOT 2
- Generated xxxCdrAux.hpp has data type casting issue for large recursive data structure
- fastddsgen.bat .\HelloWorld.idl Error HOT 1
- Cannot generate python bindings for map data type
- allow modern enum class/scoped enums with type specifier and assigning values HOT 1
- fastddsgen generates invalid #ifndef header fence on IDL filename with "-"
- comparing floating point types in generator equality operator
- Include error with CMake example - <fastcdr/cdr/fixed_size_string.hpp> HOT 3
- FastDDSGen detects IDL file changes HOT 1
- Failures with multiple consecutive directory separators
- On Windows, using a GCC preprocessor does not work
- [XTypes/PL_CDR2] Member header issue for sequences with an inner type of 2 bytes length (short, unsigned short)
- Can I convert UMAA IDL files to code using Fast-DDS-Gen?(Windows or Linux) HOT 1
- Why don't 1-byte data types call cdr_alignment for byte alignment? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-dds-gen.