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

[Tutorial: Expanding on ROS 2 interfaces] Use rosidl_get_typesupport_target instead of rosidl_target_interfaces #2063

Closed
aprotyas opened this issue Oct 26, 2021 · 0 comments · Fixed by #2064

Comments

@aprotyas
Copy link
Member

aprotyas commented Oct 26, 2021

rosidl_target_interfaces was deprecated in favor of rosidl_get_typesupport_target in ros2/rosidl#606, so the latter should be used in the "3.3 Link against the interface" section of the "Expanding on ROS 2 interfaces" tutorial page.

The following change should suffice:

< rosidl_target_interfaces(publish_address_book
<   ${PROJECT_NAME} "rosidl_typesupport_cpp")
---
> rosidl_get_typesupport_target(cpp_typesupport_target
>   ${PROJECT_NAME} "rosidl_typesupport_cpp")
>
> target_link_libraries(publish_address_book "${cpp_typesupport_target}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant