-
Notifications
You must be signed in to change notification settings - Fork 169
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
ros2interface can't show IDL messages #780
Comments
@esteve thanks for the issue, this is reproducible.
i think parser mistakes the argument with |
@sloretz do you have any thoughts for this issue? |
@fujitatomoya thanks. I have something in the works, but it requires changes in |
Is this still being looked at at all? I've just come across the issue myself. |
We don't have anybody actively looking at it. If you'd like to contribute support for this, we'd be happy to review it. |
CC: @iuhilnehc-ynos |
Currently, I think it's suggested to use ros2 types (".msg/.srv/.action") directly which could be adapted (parsered) to ".idl". What the ros2 interface does right now is to show the original message with nested type and comments, which is similar to the original ".msg/.srv/.action" file. I wondered what the expected output is after calling A new IDL file
What we expect the output of running
Right? |
No, I don't think so. The main reason is that it is possible to create For that reason, what I think |
I am trying the same and came with the identical error. Has this issue been solved? |
@Nup-hsa I haven't had time to work on this, AFAIK there's been no progress since I created this ticket. |
I met the similar error Error processing '// generated from rosidl_adapter/resource/msg.idl.em' of 'collect_msgs/Point2D': '//'
Traceback (most recent call last):
File "/opt/ros/humble/bin/ros2", line 33, in <module>
sys.exit(load_entry_point('ros2cli==0.18.10', 'console_scripts', 'ros2')())
File "/opt/ros/humble/lib/python3.10/site-packages/ros2cli/cli.py", line 91, in main
rc = extension.main(parser=parser, args=args)
File "/opt/ros/humble/lib/python3.10/site-packages/ros2interface/command/interface.py", line 35, in main
return extension.main(args=args)
File "/opt/ros/humble/lib/python3.10/site-packages/ros2interface/verb/show.py", line 201, in main
_show_interface(
File "/opt/ros/humble/lib/python3.10/site-packages/ros2interface/verb/show.py", line 148, in _show_interface
for line in _get_interface_lines(interface_identifier):
File "/opt/ros/humble/lib/python3.10/site-packages/ros2interface/verb/show.py", line 116, in _get_interface_lines
yield InterfaceTextLine(
File "/opt/ros/humble/lib/python3.10/site-packages/ros2interface/verb/show.py", line 43, in __init__
msg_spec = parse_message_string(
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rosidl_adapter/parser.py", line 520, in parse_message_string
Type(type_string, context_package_name=pkg_name),
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rosidl_adapter/parser.py", line 277, in __init__
super(Type, self).__init__(
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rosidl_adapter/parser.py", line 190, in __init__
raise InvalidResourceName(type_string)
rosidl_adapter.parser.InvalidResourceName: // The reason is my msg directory has subdirectory like # change
msg/common/Point2D.msg
# to
msg/Point2D.msg The magic thing is that before i create a srv/ and adding a Foo.srv, it's work. |
Bug report
Required Info:
Operating System:
Installation type:
ros2cli
, but binaries for the rest of ROS,Version or commit hash:
DDS implementation:
Client library (if applicable):
Steps to reproduce issue
ros2 interface list
Expected behavior
ros2 interface show
will show the messageActual behavior
ros2 interface show
throws an exception because it can't parse IDL messages:Additional information
The text was updated successfully, but these errors were encountered: