-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fastddsspy with idl type #52
Comments
it's same with this . |
Hi @wannastar What you are describing is one of the known issues with Dynamic Types currently present in master branch. For the time being, there exists an unsupported branch containing a bunch of temporary workarounds which probably would solve your issue. |
okay, i got it. i'm looking forward to a better fastdds tool. |
IDL include a structure HelloWorld, HelloWorld includes a struct point, point includes a struct timestamp(such as HelloWorld.idl),in this way, fastddsspy will come to Segmentation fault. However, if IDL include a structure HelloWorld, HelloWorld includes a struct point, point don't include any struc (like HelloWorld_OK.idl), fastddsspy will run ok.
HelloWorld_OK.idl
struct point{
short x;};
struct HelloWorld{
point pos;
unsigned long index;};
HelloWorld.idl
struct timestamp{
short h;};
struct point{
timestamp ts;
short x;};
struct HelloWorld{
point pos;
unsigned long index;};
step1:
fastddsgen -typeobjcet HelloWorld.idl
step2:
DomainParticipantQos pqos;
pqos.wire_protocol().builtin.typelookup_config.use_server = true;
eprosima::fastdds::dds::DomainParticipant* participant_;
participant_ = DomainParticipantFactory::get_instance()->create_participant(0, pqos);
step3:
HelloWorld hello_;
hello_.index(0);
hello_.pos().ts().h(10);
hello_.pos().x(10);
writer_->write(&hello_);
The text was updated successfully, but these errors were encountered: