chore(interfaces): Make according to standard

This commit is contained in:
2025-09-25 09:54:40 +02:00
parent 04cd7afb7b
commit 1cbb4d69b1
6 changed files with 14 additions and 6 deletions

View File

@@ -8,12 +8,14 @@ endif()
# find dependencies # find dependencies
find_package(ament_cmake REQUIRED) find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED) find_package(rosidl_default_generators REQUIRED)
find_package(builtin_interfaces REQUIRED)
rosidl_generate_interfaces(${PROJECT_NAME} rosidl_generate_interfaces(${PROJECT_NAME}
"msg/Student.msg" "msg/Student.msg"
"msg/Exam.msg" "msg/Exam.msg"
"srv/Exam.srv" "srv/Exams.srv"
"action/Retake.action" "action/Retake.action"
DEPENDENCIES builtin_interfaces
) )
ament_export_dependencies(rosidl_default_runtime) ament_export_dependencies(rosidl_default_runtime)

View File

@@ -1,2 +1,3 @@
string lecture_name string lecture_name
int32 result int32 result
builtin_interfaces/Time timestamp

View File

@@ -1,2 +1,3 @@
string student_name string student_name
string lecture_name string lecture_name
builtin_interfaces/Time timestamp

View File

@@ -10,7 +10,9 @@
<buildtool_depend>ament_cmake</buildtool_depend> <buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>rosidl_default_generators</build_depend> <build_depend>rosidl_default_generators</build_depend>
<build_depend>builtin_interfaces</build_depend>
<exec_depend>rosidl_default_runtime</exec_depend> <exec_depend>rosidl_default_runtime</exec_depend>
<exec_depend>builtin_interfaces</exec_depend>
<member_of_group>rosidl_interface_packages</member_of_group> <member_of_group>rosidl_interface_packages</member_of_group>
<test_depend>ament_lint_auto</test_depend> <test_depend>ament_lint_auto</test_depend>

View File

@@ -1,5 +0,0 @@
# Request
string student_name
string lecture_name
---
float32 result

View File

@@ -0,0 +1,7 @@
# Request
string student_name
string lecture_name
int32[] exam_grades
---
# Response
int32 result # Final result