eProsima / Fast-DDS-monitor

eProsima Fast DDS Monitor is a graphical desktop application aimed at monitoring DDS environments deployed using the eProsima Fast DDS library. Looking for commercial support? Contact info@eprosima.com
https://eprosima.com
GNU General Public License v3.0
40 stars 10 forks source link

No statistics data and missing physical entities when using ROS 2 humble node #186

Open Chandan-kumar-R opened 1 year ago

Chandan-kumar-R commented 1 year ago

I'm experiencing an issue when using the DDS Monitor with a ROS 2 humble node. When I run the HelloWorldExample LINK from the DDS Suites, I can see all the statistics data and the physical entities in the DDS Monitor. However, when I use a ROS 2 humble node, LINK although I can see my publisher and subscriber on the DDS entities, there is no information displayed in the physical entities section, and the statistics data is missing.

Output of DDS HelloWorldExample: Screenshot from 2023-05-23 13-23-36

Steps to Reproduce:

Expected Behavior: When using the DDS Monitor with a ROS 2 humble node, I expect to see the publisher and subscriber information in the physical entities section, as well as the statistics data for the node.

Actual Behavior: The physical entities section is empty, and there are no statistics data displayed when using the DDS Monitor with a ROS 2 humble node. Output of ros2 humble node: Screenshot from 2023-05-23 13-28-51

Additional Information:

Environment:

ROS 2 version: Humble DDS Monitor version: 1.3.0 Operating System: Ubuntu 22.04.2 LTS

jparisu commented 1 year ago

Hi @Chandan-kumar-R

Compile with STATISTICS=ON

My first guess here is that your fastrtps version is not compiled with CMake option -DFASTDDS_STATISTICS=ON. Default ROS2 Humble does not compile with statistics, so no statistical data will be published.

Be aware that CMake option -DFASTDDS_STATISTICS=ON must be set to fastrtps compilation, not to fastdds_monitor compilation. So the ROS2 source code must be rebuilt in order to do so.

Check our ROS2 distribution that has the statistics available by default, and have some new features and applications that are not available in ROS2: https://docs.vulcanexus.org/en/latest/rst/tutorials/tools/fastdds_monitor/fastdds_monitor.html

Memory restriction

There is another known issue related with such scenario. Check this documentation in case the previous advice does not work: https://fast-dds.docs.eprosima.com/en/latest/fastdds/statistics/dds_layer/troubleshooting.html#monitoring-application-is-not-receiving-any-statistic-data