Skip to content

Commit

Permalink
TypeLookupService: also register the minimal created from the receive…
Browse files Browse the repository at this point in the history
…d complete TypeObject (#5181)

* Refs #21509. Fix

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #21322. Fixes for ROS2

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #21322. Fix unit tests

Signed-off-by: Ricardo González Moreno <[email protected]>

---------

Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware authored Sep 5, 2024
1 parent a40b229 commit bf3d0c0
Show file tree
Hide file tree
Showing 3 changed files with 548 additions and 354 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ void TypeLookupReplyListener::check_get_types_reply(
fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer().get_type_object(
requests_it->second.type_id(), type_object);
xtypes::TypeObjectUtils::type_object_consistency(type_object);
xtypes::TypeIdentifierPair type_ids;
if (RETCODE_OK != fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer().
register_type_object(type_object, type_ids, true))
{
EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER,
"Cannot register minimal of remote type");
}

typelookup_manager_->notify_callbacks(requests_it->second);
}
Expand Down
Loading

0 comments on commit bf3d0c0

Please sign in to comment.