Skip to content

Commit 68b96af

Browse files
committed
Fix rmw_api_connextdds_count_services
Signed-off-by: Minju, Lee <[email protected]>
1 parent 986b18a commit 68b96af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rmw_connextdds_common/src/common/rmw_info.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,11 @@ rmw_api_connextdds_count_services(
354354
}
355355

356356
auto common_context = &node->context->impl->common;
357-
const std::string mangled_rp_service_name =
357+
const std::string mangled_rq_service_name =
358358
rmw_connextdds_create_topic_name(
359-
ROS_SERVICE_RESPONSE_PREFIX, service_name, "Reply", false);
360-
return common_context->graph_cache.get_writer_count(
361-
mangled_rp_service_name, count);
359+
ROS_SERVICE_REQUESTER_PREFIX, service_name, "Request", false);
360+
return common_context->graph_cache.get_reader_count(
361+
mangled_rq_service_name, count);
362362
}
363363

364364

0 commit comments

Comments
 (0)