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

Parser exception with nav_msgs/Odometry [ROS1<>ROS2] #164

Open
Achllle opened this issue Aug 11, 2021 · 7 comments
Open

Parser exception with nav_msgs/Odometry [ROS1<>ROS2] #164

Achllle opened this issue Aug 11, 2021 · 7 comments

Comments

@Achllle
Copy link

Achllle commented Aug 11, 2021

Summary

I'm getting an exception when I launch a ROS1 (noetic) to ROS2 (galactic) conversion using nav_msgs/Odometry messages. Things work as expected with a different message from nav_msgs.

steps to reproduce

In a ROS1 terminal:

rostopic pub -r 1 /test_odom nav_msgs/Odometry "header:
  seq: 0
  stamp:
[...] # omitted rest of default tab-completed message for brevity

Launch integration-services following the documentation with the following yaml file:

systems:
  ros1: {type: ros1}
  ros2: {type: ros2, domain: 0, node_name: my_ros2_node}

routes:
  ros1_to_ros2: { from: ros1, to: ros2 }

topics:
  test_odom: { type: "nav_msgs/Odometry", route: ros1_to_ros2, remap: { ros2: { topic: "odom2" } } }

expected outcome

In a ROS2 terminal I can read Odometry messages using ros2 topic echo /odom2

actual outcome

integration services fails with the following error:

terminate called after throwing an instance of 'eprosima::xtypes::idl::Parser::exception'
  what():  Parser exception (<no file>:94:20): The identifier "double__36" is already used.
Aborted (core dumped)

additional information

A different message from nav_msgs does work, i.e. rostopic pub -r 1 /test_map nav_msgs/OccupancyGrid ... and yaml file containing:

topics:
  test_map: { type: "nav_msgs/OccupancyGrid", route: ros1_to_ros2, remap: { ros2: { topic: "map2" } } }

results in a topic /map2 with expected messages when I ros2 topic echo /map2.

I've also tried deleting the remap without success.

@Achllle
Copy link
Author

Achllle commented Aug 11, 2021

I found that I get a similar error with diagnostic_msgs/DiagnosticArray. Compilation seems to be successful when I add it to the -DMIX_ROS_PACKAGES flag.

terminate called after throwing an instance of 'eprosima::xtypes::idl::Parser::exception'
  what():  Parser exception (<no file>:24:13): Member type octet is unknown

@Achllle
Copy link
Author

Achllle commented Sep 15, 2021

@lauramg15 @MiguelBarro Appreciate any input on this, thanks!

@MiguelBarro
Copy link
Contributor

This issue is duly noted and we will try to address it as soon as we can.

@Achllle
Copy link
Author

Achllle commented Oct 19, 2021

Any timeline or should I not expect any updates anytime soon? It seems like support was dropped for this repo?

@Baerenstark2
Copy link

@Achllle I came across the exact same Issue with the nav_msgs/Odometry as you described in this Issue. So I was wondering whether you found any workaround to be able to still transport nav_msgs/Odometry between ROS2 and ROS1 with the integration-service.

@Achllle
Copy link
Author

Achllle commented Mar 30, 2022

Unfortunately I gave up on this repo, it is clearly not maintained anymore.

@lairdm
Copy link

lairdm commented Jul 22, 2022

Yeah, I just encountered this issue too. It's a shame, Integration Service seems like it has great potential, I hope it's revived. I might dig a little on this if I knew how to get a dev environment setup, but if the project is overall not being maintained that might be pointless.

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

4 participants