Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation for Deadline, Liveliness, and Lifespan QoS #167

Closed
wants to merge 11 commits into from
Closed

Implementation for Deadline, Liveliness, and Lifespan QoS #167

wants to merge 11 commits into from

Conversation

mm318
Copy link
Member

@mm318 mm318 commented Mar 8, 2019

Implementation for Deadline, Liveliness, and Lifespan QoS. The design is at ros2/design#212

This is currently a work in progress.

@tfoote tfoote added the in progress Actively being worked on (Kanban column) label Mar 8, 2019
@thomas-moulard
Copy link

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@thomas-moulard
Copy link

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

rmw/include/rmw/ret_types.h Show resolved Hide resolved
rmw/include/rmw/rmw.h Show resolved Hide resolved
* \return `RMW_RET_OK` if successful, or
* \return `RMW_RET_BAD_ALLOC` if memory allocation failed, or
* \return `RMW_RET_ERROR` if an unexpected error occurs.
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc block style we use is:

/// Brief description, which is concise and a single line only.
/**
 * A longer description.
 *
 * Perhaps with detailed explanation of the behavior of the function.
 * But always, one sentence per line.
 * Another sentence is here.
 *
 * \param[in] input An input argument.
 * \param[out] output An output argument.
 * \return `RMW_RET_OK` if successful, or
 * \return `RMW_RET_BAD_ALLOC` if memory allocation failed, or
 * \return `RMW_RET_ERROR` if an unexpected error occurs.
 */
...

Note the differences, like /** at the start, the brief being on it's own /// line, the param's having in/out designations, etc.

Also the taken argument is not documented.

rmw/include/rmw/types.h Show resolved Hide resolved
@@ -239,6 +299,154 @@ typedef enum RMW_PUBLIC_TYPE
RMW_LOG_SEVERITY_FATAL = RCUTILS_LOG_SEVERITY_FATAL
} rmw_log_severity_t;

/// Defined in the DDS SSpec 15-04-10 section 2.2.4.1 Communication Status
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem like a brief description for the struct, so either reformat it so that it is, or consider just using //.

typedef struct RMW_LIVELINESS_CHANGED_STATUS
{
/**
* The total number of currently active DataWriters that write the Topic read by the DataReader.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rmw documentation should not speak about DDS concepts like DataWriter, etc.. It needs to be in generic terms that are not tied to a specific rmw implementation.

rmw/src/allocators.c Show resolved Hide resolved
@mm318
Copy link
Member Author

mm318 commented Apr 2, 2019

Closing this pull request in favor of #171.

@mm318 mm318 closed this Apr 2, 2019
@tfoote tfoote removed the in progress Actively being worked on (Kanban column) label Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants