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

ROS2 messages not work between python and C++ dora node #483

Open
bobd988 opened this issue Apr 20, 2024 · 2 comments
Open

ROS2 messages not work between python and C++ dora node #483

bobd988 opened this issue Apr 20, 2024 · 2 comments
Labels
python Python API

Comments

@bobd988
Copy link
Contributor

bobd988 commented Apr 20, 2024

When using DORA C++ with the ROS2 messages to pub/sub

image

Using another DORA node with python to subscribe to it but message not able to receive. If you can try it works pls provide an example.

@github-actions github-actions bot added the python Python API label Apr 20, 2024
@phil-opp phil-opp changed the title ROS2 messaages not work between python and C++ dora node ROS2 messages not work between python and C++ dora node Apr 21, 2024
@haixuanTao
Copy link
Collaborator

The ros2 bridge in dora is provided mainly thanks to https://github.com/jhelovuo/ros2-client .

Also, we're able to communicate with ros2, there should still be expected errors when using the bridges as both project are fairly young and experimental.

Using the bridge between two dora nodes is not in the range of things we can actively support, because:

  • we don't own ros2-client and most of the logic happens there.
  • there is a lot of moving parts between dora <-> DDS <-> ros2 which means a lot of errors can happen.
  • we still need to actively develop dora and it's missing features. We barely support all dora features in C++ so actively pushing on the C++ ros2 bridge before dora seems precipitated.

I would recommend switching both nodes to dora, using arrow.

@phil-opp
Copy link
Collaborator

You could try to test the two nodes separately against ROS2 nodes:

  1. Verify that ROS2 messages sent by the Dora C++ node are seen by ROS2.
  2. Verify that the Python Dora node receives messages sent by ROS2 nodes.

If both of the above work, I would expect that a Dora C++ publish to ROS2 should reach a Dora Python subscription to that same ROS2 topic.

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

No branches or pull requests

3 participants