Function rosidl_runtime_c__type_description__FieldType__init

Function Documentation

bool rosidl_runtime_c__type_description__FieldType__init(rosidl_runtime_c__type_description__FieldType *msg)

Initialize msg/FieldType message.

If the init function is called twice for the same message without calling fini inbetween previously allocated memory will be leaked.

Parameters:

msg[inout]

The previously allocated message pointer. Fields without a default value will not be initialized by this function. You might want to call memset(msg, 0, sizeof(

rosidl_runtime_c__type_description__FieldType

)) before or use

rosidl_runtime_c__type_description__FieldType__create() to allocate and initialize the message.

Returns:

true if initialization was successful, otherwise false