Giter Club home page Giter Club logo

Comments (4)

richiware avatar richiware commented on August 12, 2024

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.

vireshshirol avatar vireshshirol commented on August 12, 2024

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.

Chatrapath avatar Chatrapath commented on August 12, 2024

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.

omovomo avatar omovomo commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.