Skip to content

Commit cbe936d

Browse files
pablogs9Acuadros95
andauthored
Apply suggestions from code review
Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>
1 parent bdc546d commit cbe936d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • _docs/tutorials/advanced/handling_type_memory

_docs/tutorials/advanced/handling_type_memory/index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ for(int32_t i = 0; i < 3; i++){
206206

207207
Due to the inclusion of [`rosidl_typesupport_introspection_c`](https://github.com/ros2/rosidl/tree/master/rosidl_typesupport_introspection_c) in micro-ROS Galactic distribution, an automated memory handling for micro-ROS types is available. The tools related to this feature are available in the package [`micro_ros_utilities`](https://github.com/micro-ROS/micro_ros_utilities).
208208

209-
The documentation of the package [`micro_ros_utilities`](https://github.com/micro-ROS/micro_ros_utilities) are available [here](https://micro.ros.org/docs/api/utils/).
209+
The documentation of the package [`micro_ros_utilities`](https://github.com/micro-ROS/micro_ros_utilities) is available [here](https://micro.ros.org/docs/api/utils/).
210210

211211
This package is able to auto-assign memory to a certain message struct using default dynamic memory allocators, for example, using the previouly declated type:
212212

@@ -245,7 +245,7 @@ bool success = micro_ros_utilities_create_message_memory(
245245
);
246246
```
247247

248-
A complex rules approach can be used as in the following example:
248+
To customize the length of each member of the struct, a complex rules approach can be used as in the following example:
249249

250250
```c
251251
mypackage__msg__MyComplexType mymsg;
@@ -311,8 +311,7 @@ Finally, a destruction function is also provided for messages allocated in dynam
311311
```c
312312
mypackage__msg__MyComplexType mymsg;
313313

314-
// Memory allocation using micro_ros_utilities_create_message_memory
315-
// ...
314+
// Release memory previously allocated with micro_ros_utilities_create_message_memory
316315

317316
bool success = micro_ros_utilities_destroy_message_memory(
318317
ROSIDL_GET_MSG_TYPE_SUPPORT(mypackage, msg, MyComplexType),

0 commit comments

Comments
 (0)