rmw
master
C API providing a middleware abstraction layer which is used to implement the rest of ROS.
|
#include <stddef.h>
#include "rmw/macros.h"
#include "rmw/visibility_control.h"
#include "rmw/types.h"
Go to the source code of this file.
Classes | |
struct | rmw_message_sequence_t |
Structure to hold a sequence of ROS messages. More... | |
struct | rmw_message_info_sequence_t |
Structure to hold a sequence of message infos. More... | |
Typedefs | |
typedef struct RMW_PUBLIC_TYPE rmw_message_sequence_t | rmw_message_sequence_t |
Structure to hold a sequence of ROS messages. More... | |
typedef struct RMW_PUBLIC_TYPE rmw_message_info_sequence_t | rmw_message_info_sequence_t |
Structure to hold a sequence of message infos. More... | |
Functions | |
rmw_message_sequence_t | rmw_get_zero_initialized_message_sequence (void) |
Return an rmw_message_sequence_t struct with members initialized to NULL More... | |
rmw_ret_t | rmw_message_sequence_init (rmw_message_sequence_t *sequence, size_t size, rcutils_allocator_t *allocator) |
Initialize an rmw_message_sequence_t object. More... | |
rmw_ret_t | rmw_message_sequence_fini (rmw_message_sequence_t *sequence) |
Finalize an rmw_message_sequence_t object. More... | |
rmw_message_info_sequence_t | rmw_get_zero_initialized_message_info_sequence (void) |
Return an rmw_message_info_sequence_t struct with members initialized to NULL More... | |
rmw_ret_t | rmw_message_info_sequence_init (rmw_message_info_sequence_t *sequence, size_t size, rcutils_allocator_t *allocator) |
Initialize an rmw_message_info_sequence_t object. More... | |
rmw_ret_t | rmw_message_info_sequence_fini (rmw_message_info_sequence_t *sequence) |
Finalize an rmw_message_sequence_t object. More... | |
typedef struct RMW_PUBLIC_TYPE rmw_message_sequence_t rmw_message_sequence_t |
Structure to hold a sequence of ROS messages.
Structure to hold a sequence of message infos.
rmw_message_sequence_t rmw_get_zero_initialized_message_sequence | ( | void | ) |
Return an rmw_message_sequence_t struct with members initialized to NULL
rmw_ret_t rmw_message_sequence_init | ( | rmw_message_sequence_t * | sequence, |
size_t | size, | ||
rcutils_allocator_t * | allocator | ||
) |
Initialize an rmw_message_sequence_t object.
[in,out] | sequence | sequence object to be initialized. |
[in] | size | capacity of the sequence to be allocated. |
[in] | allocator | the allcator used to allocate memory. |
rmw_ret_t rmw_message_sequence_fini | ( | rmw_message_sequence_t * | sequence | ) |
Finalize an rmw_message_sequence_t object.
The rmw_message_sequence_t struct has members which require memory to be allocated to them before setting values. This function reclaims any allocated resources within the object and zeroes out all other members.
Note: This will not call fini
or deallocate the underlying message structures.
[in,out] | sequence | sequence object to be finalized. |
rmw_message_info_sequence_t rmw_get_zero_initialized_message_info_sequence | ( | void | ) |
Return an rmw_message_info_sequence_t struct with members initialized to NULL
rmw_ret_t rmw_message_info_sequence_init | ( | rmw_message_info_sequence_t * | sequence, |
size_t | size, | ||
rcutils_allocator_t * | allocator | ||
) |
Initialize an rmw_message_info_sequence_t object.
[in,out] | sequence | sequence object to be initialized. |
[in] | size | capacity of the sequence to be allocated. |
[in] | allocator | the allcator used to allocate memory. |
rmw_ret_t rmw_message_info_sequence_fini | ( | rmw_message_info_sequence_t * | sequence | ) |
Finalize an rmw_message_sequence_t object.
The rmw_message_sequence_t struct has members which require memory to be allocated to them before setting values. This function reclaims any allocated resources within the object and zeroes out all other members.
[in,out] | sequence | sequence object to be finalized. |