eProsima / Micro-XRCE-DDS-Agent

Micro XRCE-DDS Agent respository. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
102 stars 72 forks source link

Receiving UXR_STATUS_ERR_DDS_ERROR on 2nd publisher creation #329

Closed Ryanf55 closed 1 year ago

Ryanf55 commented 1 year ago

Issue template

Steps to reproduce the issue

Expected behavior

Actual behavior

Additional information

Micro ROS Logs:

[micro_ros_agent-1] [1678524873.791848] info     | ProxyClient.cpp    | create_topic             | topic created          | client_key: 0xAAAABBBB, topic_id: 0x002(2), participant_id: 0x001(1)
[micro_ros_agent-1] [1678524873.791858] info     | ProxyClient.cpp    | create_publisher         | publisher created      | client_key: 0xAAAABBBB, publisher_id: 0x002(3), participant_id: 0x001(1)
[micro_ros_agent-1] [1678524873.791875] debug    | SerialAgentLinux.cpp | send_message             | [** <<SER>> **]        | client_key: 0xAAAABBBB, len: 14
[micro_ros_agent-1] [1678524873.791881] debug    | SerialAgentLinux.cpp | send_message             | [** <<SER>> **]        | client_key: 0xAAAABBBB, len: 14
[micro_ros_agent-1] [1678524873.791898] debug    | SerialAgentLinux.cpp | send_message             | [** <<SER>> **]        | client_key: 0xAAAABBBB, len: 14
[micro_ros_agent-1] [1678524873.791902] debug    | SerialAgentLinux.cpp | send_message             | [** <<SER>> **]        | client_key: 0xAAAABBBB, len: 13
[micro_ros_agent-1] [*** LOG ERROR #0001 ***] [2023-03-11 01:54:33] [] {argument not found}
[micro_ros_agent-1] [1678524873.797640] debug    | SerialAgentLinux.cpp | recv_message             | [==>> SER <<==]        | client_key: 0xAAAABBBB, len: 13
[micro_ros_agent-1] [1678524873.797646] debug    | SerialAgentLinux.cpp | recv_message             | [==>> SER <<==]        | client_key: 0xAAAABBBB, len: 13
[micro_ros_agent-1] [1678524873.797648] debug    | SerialAgentLinux.cpp | recv_message             | [==>> SER <<==]        | client_key: 0xAAAABBBB, len: 13
Acuadros95 commented 1 year ago

The second topic is not being created, check this comment: https://github.com/Ryanf55/ardupilot/commit/25af822eda6430b6c52ddc2d7fe7bc772ccc1550#r104355412

Also, I would advise to use the BinaryEntityCreation mode, which does not use extra memory and will avoid the need to keep a xml on the agent side.

Ryanf55 commented 1 year ago

Thanks. Good eye.

Is there any way to improve the logging error message in the Micro ROS Agent to help others troubleshoot this?

pablogs9 commented 1 year ago

Can this be closed?

Acuadros95 commented 1 year ago

Is there any way to improve the logging error message in the Micro ROS Agent to help others troubleshoot this?

Not at this moment, the logging messages are oriented to raw data.