Skip to content

Commit

Permalink
Refactor graph cache to track qos (#107)
Browse files Browse the repository at this point in the history
* Nest TopicQoSMap within TopicDataMap

Signed-off-by: Yadunund <[email protected]>

* Count matched pub/subs based on qos compatibility

Signed-off-by: Yadunund <[email protected]>

* Rename TopicDataMap to TopicTypeMap

Signed-off-by: Yadunund <[email protected]>

---------

Signed-off-by: Yadunund <[email protected]>
  • Loading branch information
Yadunund authored Feb 9, 2024
1 parent 9ecfd72 commit d2398e6
Show file tree
Hide file tree
Showing 5 changed files with 279 additions and 244 deletions.
3 changes: 2 additions & 1 deletion rmw_zenoh_cpp/src/detail/event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "rmw/event.h"

///=============================================================================
// RMW Event types that we support in rmw_zenoh.
// A struct that represents an event status in rmw_zenoh.
enum rmw_zenoh_event_type_t
{
// sentinel value
Expand All @@ -43,6 +43,7 @@ enum rmw_zenoh_event_type_t
/// Helper value to indicate the maximum index of events supported.
#define ZENOH_EVENT_ID_MAX rmw_zenoh_event_type_t::ZENOH_EVENT_PUBLICATION_MATCHED

// RMW Event types that we support in rmw_zenoh.
static const std::unordered_map<rmw_event_type_t, rmw_zenoh_event_type_t> event_map{
{RMW_EVENT_REQUESTED_QOS_INCOMPATIBLE, ZENOH_EVENT_REQUESTED_QOS_INCOMPATIBLE},
{RMW_EVENT_OFFERED_QOS_INCOMPATIBLE, ZENOH_EVENT_OFFERED_QOS_INCOMPATIBLE},
Expand Down
Loading

0 comments on commit d2398e6

Please sign in to comment.