Skip to content

Nodes discovery taking too long #38

@mauropasse

Description

@mauropasse

Hello,
I'm testing the introspection branch, running one of the iRobot benchmark tests, and I noticed the list of discovered nodes is not properly updated on time, in most of the times the nodes are not fully discovered.
The issue seems to be on the function get_discovered_nodes defined on rmw_dps_cpp/include/rmw_dps_cpp/custom_node_info.hpp. The map discovered_nodes_ is not populated with all the present nodes in the system.

If you'd like to reproduce the issue:

git clone https://github.com/irobot-ros/ros2-performance.git
mkdir -p ~/performance_test_ws/src
cp -r ros2-performance/performances/ ~/performance_test_ws/src
cd ~/performance_test_ws
colcon build
source install/local_setup.bash
cd install/benchmark/lib/benchmark/
./benchmark topology/sierra_nevada.json
# Here it hangs forever in the discovery process

The problem starts to be seen when there are about 10 nodes in the ROS2 system.

Any ideas about what could be wrong?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions