Skip to content

Commit 6da8660

Browse files
authored
Runtime Interface Reflection: rosidl (#728)
* Add type description utils Signed-off-by: methylDragon <[email protected]> * Fix realloc check bug Signed-off-by: methylDragon <[email protected]> * Fix const and bool bug Signed-off-by: methylDragon <[email protected]> * Implement type name string replacement Signed-off-by: methylDragon <[email protected]> * Lint Signed-off-by: methylDragon <[email protected]> * Fix windows build Signed-off-by: methylDragon <[email protected]> * Fix print Signed-off-by: methylDragon <[email protected]> * Fix print (for nulls) Signed-off-by: methylDragon <[email protected]> * Refactor type description utils to use return types Signed-off-by: methylDragon <[email protected]> * Fix windows warnings Signed-off-by: methylDragon <[email protected]> * Remove print functions Signed-off-by: methylDragon <[email protected]> --------- Signed-off-by: methylDragon <[email protected]>
1 parent 7cbb116 commit 6da8660

File tree

4 files changed

+2682
-0
lines changed

4 files changed

+2682
-0
lines changed

rosidl_runtime_c/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ add_library(${PROJECT_NAME}
2525
"src/string_functions.c"
2626
"src/type_hash.c"
2727
"src/u16string_functions.c"
28+
"src/type_description_utils.c"
2829
${type_description_sources}
2930
)
3031
target_include_directories(${PROJECT_NAME} PUBLIC
@@ -136,6 +137,11 @@ if(BUILD_TESTING)
136137
target_compile_definitions(test_u16string_functions PUBLIC RCUTILS_ENABLE_FAULT_INJECTION)
137138
endif()
138139

140+
ament_add_gtest(test_type_description_utils test/test_type_description_utils.cpp)
141+
if(TARGET test_type_description_utils)
142+
target_link_libraries(test_type_description_utils ${PROJECT_NAME})
143+
endif()
144+
139145
add_performance_test(benchmark_string_conversion test/benchmark/benchmark_string_conversion.cpp)
140146
if(TARGET benchmark_string_conversion)
141147
target_link_libraries(benchmark_string_conversion ${PROJECT_NAME})

0 commit comments

Comments
 (0)