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

Service timestamps #217

Merged
merged 3 commits into from
Apr 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rmw/include/rmw/rmw.h
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ RMW_WARN_UNUSED
rmw_ret_t
rmw_take_response(
const rmw_client_t * client,
rmw_request_id_t * request_header,
rmw_service_info_t * request_header,
void * ros_response,
bool * taken);

Expand All @@ -884,7 +884,7 @@ RMW_WARN_UNUSED
rmw_ret_t
rmw_take_request(
const rmw_service_t * service,
rmw_request_id_t * request_header,
rmw_service_info_t * request_header,
void * ros_request,
bool * taken);

Expand Down
12 changes: 10 additions & 2 deletions rmw/include/rmw/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,16 @@ typedef struct RMW_PUBLIC_TYPE rmw_time_t
uint64_t nsec;
} rmw_time_t;

typedef rcutils_time_point_value_t rmw_time_point_value_t;

/// Meta-data for a service-related take.
typedef struct RMW_PUBLIC_TYPE rmw_service_info_t
{
rmw_time_point_value_t source_timestamp;
rmw_time_point_value_t received_timestamp;
rmw_request_id_t request_id;
} rmw_service_info_t;

enum RMW_PUBLIC_TYPE rmw_qos_reliability_policy_t
{
RMW_QOS_POLICY_RELIABILITY_SYSTEM_DEFAULT,
Expand Down Expand Up @@ -330,8 +340,6 @@ typedef struct RMW_PUBLIC_TYPE rmw_gid_t
uint8_t data[RMW_GID_STORAGE_SIZE];
} rmw_gid_t;

typedef rcutils_time_point_value_t rmw_time_point_value_t;

typedef struct RMW_PUBLIC_TYPE rmw_message_info_t
{
rmw_time_point_value_t source_timestamp;
Expand Down