Struct DurationStatusParam

Struct Documentation

struct DurationStatusParam

Parameters of DurationStatus diagnostic task.

Public Functions

explicit DurationStatusParam(const ::ros::Duration &minDuration = {0, 0}, const ::ros::Duration &maxDuration = ::ros::DURATION_MAX, double tolerance = 0.1, size_t windowSize = 5, bool noEventsIsOk = true)

Construct the parameter object using the passed values.

Parameters:
  • minDuration[in] Minimum allowed duration.

  • maxDuration[in] Maximum allowed duration.

  • tolerance[in] Tolerance of the duration.

  • windowSize[in] Number of updates during which the duration stats are considered.

  • noEventsIsOk[in] Whether it is okay when there are no events between two update calls.

DurationStatusParam(const ::cras::DurationStatusParam &other)

Copy constructor.

Parameters:

other[in] The object to copy from.

DurationStatusParam(const ::cras::SimpleDurationStatusParam &params)

Initialize this object from SimpleDuraitonStatusParam.

Parameters:

params[in] The parameters to initialize with.

::cras::DurationStatusParam &operator=(const ::cras::DurationStatusParam &other)

Copy assignment operator.

Parameters:

other[in] The object to copy from.

Public Members

::ros::Duration minDuration = {0, 0}

Minimum duration considered as valid.

::ros::Duration maxDuration = {::ros::DURATION_MAX}

Maximum duration considered as valid.

double tolerance = {0.1}

Tolerance of the duration.

size_t windowSize = {5u}

Number of updates during which the duration is computed.

bool noEventsIsOk = {true}

Whether it is okay when there are no events between two update calls.