Skip to content
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

Insight can't import .idl file with dependencies #23

Open
NicoBrug opened this issue Sep 11, 2024 · 3 comments
Open

Insight can't import .idl file with dependencies #23

NicoBrug opened this issue Sep 11, 2024 · 3 comments

Comments

@NicoBrug
Copy link

Hi,

I'm trying to import an idl file into the insight data model. I've tried an .idl that contains other includes and it doesn't work, and puts logs that look strange to me.

Here's what it says:

//Copy Process ...
[DEBUG] [datamodel_model.py:278] File copied successfully. [DEBUG] [datamodel_model.py:278] File copied successfully. Clock.idl
[DEBUG] [datamodel_model.py:306] Found _idlpy : PATH.
[INFO] [datamodel_model.py:323] Execute: CMD
[DEBUG] ... /datamodel/idl/Clock.idl:5 : error : Unable to open include file “builtin_interfaces/msg/Time.idl”\N #include “builtin_interfaces/msg/Time.idl”\N1 error in preprocessor.\N “.
2024-09-11 19:06:27,636 [DEBUG] [datamodel_model.py:333] The process ended successfully.
[DEBUG] [datamodel_model.py:333] Process terminated successfully. [DEBUG] [datamodel_model.py:287] Process Time.idl ... [DEBUG] [datamodel_model.py:306] Found _idlpy : PATH
...
[datamodel_model.py:333] Process terminated successfully.

And after that, Insight do not import the files.

Is this a bug? Or maybe my way of importing for idl is not the right one?

Working environment:

  • Windows 11
  • CI build: cyclonedds-insight-0.0.0-windows-x64
@trittsv
Copy link
Contributor

trittsv commented Sep 11, 2024

Hi @NicoBrug can you provide the IDL files so that i can reproduce it?

The normal procedure would be:

  1. select all idl files
  2. drag and drop them all together into insight

@NicoBrug
Copy link
Author

Hi,

here are the files (It's two ROS file from rosgraph_msgs and builtin_interfaces.) :

Time.idl :

module builtin_interfaces { module msg { struct Time { int32 sec; uint32 nanosec; }; }; };

Clock.idl

#include "builtin_interfaces/msg/Time.idl" module rosgraph_msgs { module msg { struct Clock { builtin_interfaces::msg::Time clock; }; }; };

@trittsv
Copy link
Contributor

trittsv commented Sep 23, 2024

@NicoBrug currently it only works when all the dependencies are in the same folder and drag-and-dropped from there all together into CycloneDDS Insight.

May i will look into a solutions this week, (to drag-and-drop a folder into Insight) :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants