Function ros2_medkit_gateway::filter_internal_node_apps
Defined in File gateway_node.hpp
Function Documentation
-
size_t ros2_medkit_gateway::filter_internal_node_apps(std::vector<App> &apps, const std::unordered_map<std::string, std::string> &peer_routing_table)
Filter ROS 2 internal nodes from an app list.
Removes apps whose base name begins with ‘_’ (ROS 2 internal node convention). For remote (peer-prefixed) apps, the peer prefix (“peer_name__”) is stripped before checking for the underscore prefix, using the routing table for precise prefix detection.
- Parameters:
apps – App vector to filter in place
peer_routing_table – Maps entity_id -> peer_name for remote entities
- Returns:
Number of apps removed