Skip to content

Commit

Permalink
make qos durations default to infinite instead of 0
Browse files Browse the repository at this point in the history
Signed-off-by: Emerson Knapp <[email protected]>
  • Loading branch information
Emerson Knapp committed Feb 10, 2021
1 parent 6ce82d7 commit da71ce4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rmw/include/rmw/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,13 @@ enum RMW_PUBLIC_TYPE rmw_qos_liveliness_policy_t
};

/// QoS Deadline default, indicates that no deadline is enforced
#define RMW_QOS_DEADLINE_DEFAULT {0, 0}
#define RMW_QOS_DEADLINE_DEFAULT RMW_DURATION_INFINITE

/// QoS Lifespan default, indicates that no lifespan is enforced
#define RMW_QOS_LIFESPAN_DEFAULT {0, 0}
#define RMW_QOS_LIFESPAN_DEFAULT RMW_DURATION_INFINITE

/// QoS Liveliness lease duration default, indicates that no lease duration is enforced
#define RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT {0, 0}
#define RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT RMW_DURATION_INFINITE

/// ROS MiddleWare quality of service profile.
typedef struct RMW_PUBLIC_TYPE rmw_qos_profile_t
Expand Down

0 comments on commit da71ce4

Please sign in to comment.