|
85 | 85 | "RMW_CONNEXT_DISABLE_LARGE_DATA_OPTIMIZATIONS"
|
86 | 86 | #endif /* RMW_CONNEXT_ENV_DISABLE_LARGE_DATA_OPTIMIZATIONS */
|
87 | 87 |
|
| 88 | +#ifndef RMW_CONNEXT_ENV_DISABLE_RELIABILITY_OPTIMIZATIONS |
| 89 | +#define RMW_CONNEXT_ENV_DISABLE_RELIABILITY_OPTIMIZATIONS \ |
| 90 | + "RMW_CONNEXT_DISABLE_RELIABILITY_OPTIMIZATIONS" |
| 91 | +#endif /* RMW_CONNEXT_ENV_DISABLE_RELIABILITY_OPTIMIZATIONS */ |
| 92 | + |
88 | 93 | // TODO(security-wg): These are intended to be temporary, and need to be
|
89 | 94 | // refactored into a proper abstraction.
|
90 | 95 | #ifndef RMW_CONNEXT_ENV_SECURITY_LOG_FILE
|
|
226 | 231 | #define RMW_CONNEXT_TYPE_OBJECT_MAX_SERIALIZED_SIZE 65000
|
227 | 232 | #endif /* RMW_CONNEXT_TYPE_OBJECT_MAX_SERIALIZED_SIZE */
|
228 | 233 |
|
| 234 | +/****************************************************************************** |
| 235 | + * Customize the RTPS reliability protocol to speed up its responsiveness. |
| 236 | + ******************************************************************************/ |
| 237 | +#ifndef RMW_CONNEXT_DEFAULT_RELIABILITY_OPTIMIZATIONS |
| 238 | +#define RMW_CONNEXT_DEFAULT_RELIABILITY_OPTIMIZATIONS 1 |
| 239 | +#endif /* RMW_CONNEXT_DEFAULT_RELIABILITY_OPTIMIZATIONS */ |
| 240 | + |
| 241 | +/****************************************************************************** |
| 242 | + * Regular hearbeat period used by any reliable RTPS Writer. |
| 243 | + * This is an initializer for an instance of type DDS_Duration_t. |
| 244 | + ******************************************************************************/ |
| 245 | +#ifndef RMW_CONNEXT_DEFAULT_HEARTBEAT_PERIOD |
| 246 | +#define RMW_CONNEXT_DEFAULT_HEARTBEAT_PERIOD {0, 100000000} /* 100ms */ |
| 247 | +#endif /* RMW_CONNEXT_DEFAULT_HEARTBEAT_PERIOD */ |
| 248 | + |
| 249 | +/****************************************************************************** |
| 250 | + * Fast hearbeat period used by any reliable RTPS Writer to allow |
| 251 | + * late joiners and out of sync readers to catch up. |
| 252 | + * This is an initializer for an instance of type DDS_Duration_t. |
| 253 | + ******************************************************************************/ |
| 254 | +#ifndef RMW_CONNEXT_DEFAULT_HEARTBEAT_PERIOD_FAST |
| 255 | +#define RMW_CONNEXT_DEFAULT_HEARTBEAT_PERIOD_FAST {0, 20000000} /* 20ms */ |
| 256 | +#endif /* RMW_CONNEXT_DEFAULT_HEARTBEAT_PERIOD_FAST */ |
| 257 | + |
| 258 | +/****************************************************************************** |
| 259 | + * When a DataWriter receives a request for missing DDS samples from a |
| 260 | + * DataReader and responds by resending the requested DDS samples, it will |
| 261 | + * ignore additional requests for the same DDS samples during the time period |
| 262 | + * max_nack_response_delay. We decrease this to be less than the HB period. |
| 263 | + ******************************************************************************/ |
| 264 | +#ifndef RMW_CONNEXT_DEFAULT_MAX_NACK_RESPONSE_DELAY |
| 265 | +#define RMW_CONNEXT_DEFAULT_MAX_NACK_RESPONSE_DELAY {0, 10000000} /* 10ms */ |
| 266 | +#endif /* RMW_CONNEXT_DEFAULT_MAX_NACK_RESPONSE_DELAY */ |
| 267 | + |
| 268 | +/****************************************************************************** |
| 269 | + * Maximum number of periodic heartbeats gone unanswered after which a |
| 270 | + * DataWriter will consider a DataReader as inactive. |
| 271 | + * |
| 272 | + ******************************************************************************/ |
| 273 | +#ifndef RMW_CONNEXT_DEFAULT_MAX_HEARTBEATS |
| 274 | +#define RMW_CONNEXT_DEFAULT_MAX_HEARTBEATS (10 * 60) /* 1m @ 10hz */ |
| 275 | +#endif /* RMW_CONNEXT_DEFAULT_MAX_HEARTBEATS */ |
| 276 | + |
| 277 | +/****************************************************************************** |
| 278 | + * When a reliable reader receives a heartbeat from a remote writer and finds |
| 279 | + * out that it needs to send back an ACK/NACK message, the reader can choose to |
| 280 | + * delay a while. We set this delay to be compatible with the HB period. |
| 281 | + ******************************************************************************/ |
| 282 | +#ifndef RMW_CONNEXT_DEFAULT_MAX_HEARTBEAT_RESPONSE_DELAY |
| 283 | +#define RMW_CONNEXT_DEFAULT_MAX_HEARTBEAT_RESPONSE_DELAY {0, 10000000} /* 10ms */ |
| 284 | +#endif /* RMW_CONNEXT_DEFAULT_MAX_HEARTBEAT_RESPONSE_DELAY */ |
| 285 | + |
229 | 286 | /******************************************************************************
|
230 | 287 | * Automatically tune DataWriterQos to better handle reliable "large data".
|
231 | 288 | ******************************************************************************/
|
|
0 commit comments