Skip to content

Commit d28a1f6

Browse files
Removed Proto
1 parent d405d4a commit d28a1f6

File tree

2 files changed

+0
-63
lines changed

2 files changed

+0
-63
lines changed

dave_interfaces/CMakeLists.txt

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ find_package(rclcpp REQUIRED)
1111
find_package(std_msgs REQUIRED)
1212
find_package(geometry_msgs REQUIRED)
1313
find_package(rosidl_default_generators REQUIRED)
14-
find_package(gz-cmake3 REQUIRED)
15-
find_package(gz-msgs10 REQUIRED) # new to proto
1614

1715
rosidl_generate_interfaces(${PROJECT_NAME}
1816
"msg/UsblCommand.msg"
@@ -31,44 +29,6 @@ install(FILES
3129
DESTINATION share/${PROJECT_NAME}
3230
)
3331

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-
################################################
7232
ament_export_dependencies(rosidl_default_runtime)
7333
# Install CMake package configuration
7434
ament_export_include_directories(include)

dave_interfaces/proto/pressure_sensor_msgs/msgs/SensorPressure.proto

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)