From 38dec2a5d94a2cbdf70a078ad92bb334d7705a6d Mon Sep 17 00:00:00 2001 From: Miaofei Date: Fri, 27 Dec 2019 19:24:26 -0800 Subject: [PATCH] reverse condition for demangling type name Signed-off-by: Miaofei --- rmw_fastrtps_shared_cpp/src/rmw_get_topic_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_fastrtps_shared_cpp/src/rmw_get_topic_info.cpp b/rmw_fastrtps_shared_cpp/src/rmw_get_topic_info.cpp index 8fb4b13a1..beceb1bed 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_get_topic_info.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_get_topic_info.cpp @@ -145,7 +145,7 @@ _set_rmw_topic_info( } // set topic type std::string type_name = - no_mangle ? _demangle_if_ros_type(topic_data.topic_type) : topic_data.topic_type; + no_mangle ? topic_data.topic_type : _demangle_if_ros_type(topic_data.topic_type); ret = rmw_topic_info_set_topic_type(topic_info, type_name.c_str(), allocator); if (ret != RMW_RET_OK) { return ret;