Skip to content

Commit 90ec844

Browse files
authored
Create 2021-07-21-handlingmemorymessages.md (#345)
1 parent 42225de commit 90ec844

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Handling memory messages Tutorial for micro-ROS
3+
author: Maria Merlan
4+
---
5+
Having total awareness of what ROS 2 messages and types are being used for, is essential in order to handle memory correctly in an embedded C99 environment.
6+
7+
The following Tutorial “Handling messages memory in micro-ROS '' at [icro-ROS web page](https://micro.ros.org/docs/tutorials/advanced/handling_type_memory/) explains in detail how to handle messages and types memory in micro-ROS.
8+
9+
The two approaches of micro-ROS memory handling are present in this tutorial.
10+
11+
micro-ROS Foxy: Memory handling using traditional allocation approach.
12+
13+
micro-ROS Galactic: Memory handling using type support introspection.
14+
15+
Type Support introspection in C in micro-ROS Galactic distribution enables the new type handling API. This package is able to auto-assign memory to a certain message structure using default dynamic memory allocators.
16+
17+
Thanks to the inclusion of this feature, an automated memory handling for micro-ROS types is available, enhancing the usability of the micro-ROS API.
18+
19+
The tools related to this feature are available in the package [micro_ros_utilities](https://github.com/micro-ROS/micro_ros_utilities) and the documentation is available [here](https://micro.ros.org/docs/api/utils/).
20+
Check this [example](https://github.com/micro-ROS/micro_ros_arduino/blob/galactic/examples/micro-ros_types_handling/micro-ros_types_handling.ino) for more information about how to avoid the message memory initialization problems in micro-ROS.
21+

0 commit comments

Comments
 (0)