Skip to content

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

Closed
@aprotyas

Description

@aprotyas

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}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions