@@ -11,8 +11,6 @@ find_package(rclcpp REQUIRED)
11
11
find_package (std_msgs REQUIRED )
12
12
find_package (geometry_msgs REQUIRED )
13
13
find_package (rosidl_default_generators REQUIRED )
14
- find_package (gz-cmake3 REQUIRED )
15
- find_package (gz-msgs10 REQUIRED ) # new to proto
16
14
17
15
rosidl_generate_interfaces (${PROJECT_NAME}
18
16
"msg/UsblCommand.msg"
@@ -31,44 +29,6 @@ install(FILES
31
29
DESTINATION share/${PROJECT_NAME}
32
30
)
33
31
34
- # new to proto
35
- ################################################
36
-
37
- # Define a variable 'GZ_MSGS_VER' holding the version number
38
- set (GZ_MSGS_VER ${gz-msgs10_VERSION_MAJOR} )
39
-
40
- # Define a variable 'MSGS_PROTOS' listing the .proto files
41
- set (MSGS_PROTOS ${CMAKE_CURRENT_SOURCE_DIR} /proto/pressure_sensor_msgs/msgs/SensorPressure.proto )
42
-
43
- # Define the GZ_DATA_INSTALL_DIR variable
44
- # DESTINATION ${GZ_DATA_INSTALL_DIR}/protos
45
- install (
46
- DIRECTORY gz
47
- DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} /proto/pressure_sensor_msgs/msgs/SensorPressure.proto
48
- COMPONENT proto
49
- FILES_MATCHING PATTERN "*.proto" )
50
-
51
- # Example of custom messages that depend on gz.msgs
52
- set (MSGS_PROTOS
53
- ${CMAKE_CURRENT_SOURCE_DIR} /proto/pressure_sensor_msgs/msgs/SensorPressure.proto )
54
- gz_msgs_generate_messages (
55
- # The cmake target to be generated for libraries/executables to link
56
- TARGET msgs # pressure_sensor_msgs_gen
57
- # The protobuf package to generate (Typically based on the path)
58
- PROTO_PACKAGE "pressure_sensor_msgs.msgs"
59
- # The path to the base directory of the proto files
60
- # All import paths should be relative to this (eg gz/custom_msgs/vector3d.proto)
61
- MSGS_PATH ${CMAKE_CURRENT_SOURCE_DIR} /proto
62
- # List of proto files to generate
63
- MSGS_PROTOS ${MSGS_PROTOS}
64
- # List of message targets this library imports from
65
- # DEPENDENCIES gz_msgs_gen
66
- # Dependency on gz-msgs
67
- DEPENDENCIES gz-msgs${GZ_MSGS_VER}::gz-msgs${GZ_MSGS_VER}
68
- )
69
- # target_link_libraries(${PROJECT_NAME} PUBLIC ${PROJECT_NAME}-msgs)
70
-
71
- ################################################
72
32
ament_export_dependencies (rosidl_default_runtime )
73
33
# Install CMake package configuration
74
34
ament_export_include_directories (include )
0 commit comments