-
Notifications
You must be signed in to change notification settings - Fork 874
Closed
Description
This is a meta ticket to collect some related tasks that have been targeted for future releases and that are related to memory management within ROS 2 and it's various layers.
- Expand usage of
rcutils_allocator_trmw: all rmw functions which may allocate memory internally need to take an allocator so it can be passed down from therclfunctions which call itrosidlfor C types: all code generators (includingrosidl_generator_cas well as middleware specific code generators) should be updated to take allocators where it makes sense (e.g. array initialization functions)rosidlfor C++ types: the std::allocator pattern is already in use, but it should be audited to make sure it's being used correctly
- Provide mechanism to use memory allocated by the middleware (get a message loan from the middleware, fill it with data, use it to publish, return the loan)
- Remove unnecessary copies and memory allocations in publish/take calls (more generally in calls made in "steady state" of typical nodes)
- Audit documentation for declarations about dynamic memory usage
rcutilsrmwrosidlrcl
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels