Skip to content

Commit

Permalink
Disable all liveliness until it is actually supported (#282)
Browse files Browse the repository at this point in the history
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
  • Loading branch information
emersonknapp authored and dirk-thomas committed May 23, 2019
1 parent cc44093 commit 66d9128
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rmw_fastrtps_shared_cpp/src/qos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ bool
is_valid_qos(const rmw_qos_profile_t & qos_policies)
{
if (qos_policies.liveliness == RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_NODE ||
qos_policies.liveliness == RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC)
qos_policies.liveliness == RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC ||
!is_time_default(qos_policies.liveliness_lease_duration))
{
RMW_SET_ERROR_MSG("Manual liveliness unsupported for fastrtps");
RMW_SET_ERROR_MSG("Liveliness QoS is not yet supported for fastrtps.");
return false;
}
return true;
Expand Down

0 comments on commit 66d9128

Please sign in to comment.