zenoh: fix default config topic type to use actual uORB topic name#26564
zenoh: fix default config topic type to use actual uORB topic name#26564
Conversation
|
Could you have a look? @PetervdPerk-NXP |
The config follows the following convention This PR changes the type not the topic, could you share the |
|
I see your point. |
That's needed to match the type otherwise it doesn't know how serialize. Easiest is to share your |
But it looks like it matches it using the topic name (
I encountered the problem when I tried to add a new topic using the existing uORB message type. Here is a list of other such cases in the current yaml that I think do not work properly: So publishing on the ROS side on a topic My pub and sub csvs are trivial, with the change they are just: |
Okay but can you just share the output to confirm it's okay with the patch. |
|
before: after: |
Thanks LGTM |
2b16844 to
b4cb2ce
Compare
Solved Problem
The zenoh bridge maps incoming ROS2 data to the wrong uORB topics when the topic name differs from the message type name.
For example:
Will publish on topic
vehicle_global_positioninstead ofaux_global_position.Solution
In
default_topics.c.em, usetopic_simple(the actual uORB topic name) instead ofsimple_base_type(the message type name). Both are already computed bygenerate_dds_topics.py. For topics where the name matches the type, these are identical.