Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrated to ROS2 Humble #1

Open
wants to merge 2 commits into
base: foxy-devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,18 @@ add_library(${PROJECT_NAME}_plugin src/gazebo_ros_link_attacher.cpp)


## Specify libraries to link a library or executable target against
target_link_libraries(${PROJECT_NAME}_plugin ${ament_cmake_LIBRARIES} ${GAZEBO_LIBRARIES})

ament_target_dependencies(${PROJECT_NAME}_plugin
"gazebo_ros"
"rclcpp")

# Connect targets with locally defined messages
get_available_rmw_implementations(rmw_implementations2)
foreach(rmw_implementation ${rmw_implementations2})
find_package("${rmw_implementation}" REQUIRED)
get_rmw_typesupport(typesupport_impls "${rmw_implementation}" LANGUAGE "cpp")
foreach(typesupport_impl ${typesupport_impls})
rosidl_target_interfaces(${PROJECT_NAME}_plugin ${PROJECT_NAME} ${typesupport_impl})
rosidl_get_typesupport_target(typesupport_target "${PROJECT_NAME}" "${typesupport_impl}")
target_link_libraries(${PROJECT_NAME}_plugin "${typesupport_target}")
endforeach()
endforeach()

Expand Down Expand Up @@ -103,4 +105,4 @@ foreach (dir launch worlds)
DESTINATION share/${PROJECT_NAME}/${dir})
endforeach(dir)

ament_package()
ament_package()
File renamed without changes.