-
Notifications
You must be signed in to change notification settings - Fork 13
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Bug: PoseStamped.idl: Illegal identifier: geometry_msgs::msg::pose is already defined #56
Comments
You need to run the generator with the case sensitive I have added it on this PR: #61 |
Closing as the fix is merged, feel free to reopen if any other problem appears |
I have run into a similar issue trying to generate .h and .c files for ROS packages installed by default with the If I copy all .idl files from /opt/ros/humble/share to ~/idl: mkdir ~/idl
pushd /opt/ros/humble/share
find . -name "*.idl" -exec cp --parents {} ~/idl \; I then get the following structure: ❯ ls
rmw_dds_common
std_msgs
nav_msgs
map_msgs
... If I attempt to run the find idl -name "*.idl" -exec bash -c './micro-xrce-dds-gen/scripts/microxrceddsgen -cs -replace -I idl -d $(dirname "$1") "$1"' x {} \; I get a bunch of Illegal identifier: is already defined errors, even with the For example: Processing the file idl/rmw_dds_common/msg/ParticipantEntitiesInfo.idl...
In file included from idl/rmw_dds_common/msg/NodeEntitiesInfo.idl:5:0,
idl/rmw_dds_common/msg/ParticipantEntitiesInfo.idl:6:0:
idl/rmw_dds_common/msg/Gid.idl:8:12: error: 'uint8' was redefined
In file included from idl/rmw_dds_common/msg/NodeEntitiesInfo.idl:5:0,
idl/rmw_dds_common/msg/ParticipantEntitiesInfo.idl:6:0:
idl/rmw_dds_common/msg/Gid.idl:9:15: error: Illegal identifier: rmw_dds_common::msg::Gid is already defined (Definition: com.eprosima.idl.parser.tree.TypeDeclaration@70cf32e3)
In file included from idl/rmw_dds_common/msg/NodeEntitiesInfo.idl:5:0,
idl/rmw_dds_common/msg/ParticipantEntitiesInfo.idl:6:0:
idl/rmw_dds_common/msg/Gid.idl:13:0: error: Unexpected input '}' If I just generate from find idl/geometry_msgs -name "*.idl" -exec bash -c './micro-xrce-dds-gen/scripts/microxrceddsgen -cs -I idl -d $(dirname "$1") -replace "$1"' x {} \; The packages with issues:
|
Summary
This bug reports a illegal identifier when trying to generate PoseStamped. One theory is because
Pose and pose
are different cases, but treated the same.Versioning
OS: Ubuntu 22.04
Hash: 0eed89a
Message: ROS2
geometry_msgs/msg/PoseStamped
Steps to reproduce
microxrceddsgen Quaternion.idl
microxrceddsgen Point.idl
microxrceddsgen Time.idl
microxrceddsgen Header.idl
microxrceddsgen Pose.idl
microxrceddsgen PoseStamped.idl
Message Definition
ROS2 .msg
IDL
The text was updated successfully, but these errors were encountered: