Skip to content

Commit

Permalink
Updates to use message generation pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed May 30, 2023
1 parent 7e28e78 commit 2cfc0fa
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ set(GZ_TRANSPORT_VER ${gz-transport13_VERSION_MAJOR})
gz_find_package(gz-msgs10 REQUIRED)
set(GZ_MSGS_VER ${gz-msgs10_VERSION_MAJOR})

# Get the gz-msgs installed messages and generate a library from them
gz_msgs_get_installed_messages(
MESSAGES_PATH_VARIABLE MSGS_PATH
MESSAGES_PROTOS_VARIABLE MSGS_PROTOS)

gz_msgs_generate_messages(
TARGET gz_msgs_gen
PROTO_PACKAGE "gz.msgs"
MSGS_PATH ${MSGS_PATH}
MSGS_PROTOS ${MSGS_PROTOS})


#--------------------------------------
# Find gz-math
gz_find_package(gz-math7 REQUIRED)
Expand Down
1 change: 1 addition & 0 deletions plugins/joy_to_twist/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ target_link_libraries(${plugin}
gz-math${GZ_MATH_VER}::gz-math${GZ_MATH_VER}
gz-plugin${GZ_PLUGIN_VER}::core
gz-transport${GZ_TRANSPORT_VER}::core
gz_msgs_gen
)

install (TARGETS ${plugin} DESTINATION ${GZ_LAUNCH_PLUGIN_INSTALL_PATH})
1 change: 1 addition & 0 deletions plugins/joystick/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ target_link_libraries(${plugin}
gz-math${GZ_MATH_VER}::gz-math${GZ_MATH_VER}
gz-transport${GZ_TRANSPORT_VER}::core
gz-plugin${GZ_PLUGIN_VER}::core
gz_msgs_gen
)

install (TARGETS ${plugin} DESTINATION ${GZ_LAUNCH_PLUGIN_INSTALL_PATH})
1 change: 1 addition & 0 deletions plugins/sim_factory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ target_link_libraries(${plugin_lower}
gz-common${GZ_COMMON_VER}::gz-common${GZ_COMMON_VER}
gz-transport${GZ_TRANSPORT_VER}::core
gz-plugin${GZ_PLUGIN_VER}::core
gz_msgs_gen
)

install (TARGETS ${plugin} DESTINATION ${GZ_LAUNCH_PLUGIN_INSTALL_PATH})
1 change: 1 addition & 0 deletions plugins/sim_factory/SimFactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <gz/msgs/boolean.pb.h>
#include <gz/msgs/entity_factory.pb.h>
#include <gz/msgs/entity_factory_v.pb.h>
#include <gz/msgs/stringmsg.pb.h>

#include <gz/common/Util.hh>
Expand Down
1 change: 1 addition & 0 deletions plugins/sim_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ target_link_libraries(${plugin_lower}
gz-common${GZ_COMMON_VER}::gz-common${GZ_COMMON_VER}
gz-transport${GZ_TRANSPORT_VER}::core
gz-plugin${GZ_PLUGIN_VER}::core
gz_msgs_gen
)

install (TARGETS ${plugin} DESTINATION ${GZ_LAUNCH_PLUGIN_INSTALL_PATH})

0 comments on commit 2cfc0fa

Please sign in to comment.