ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Memory allocator for ROS2 messages?

asked 2018-06-29 05:27:33 -0500

amosteo gravatar image

RCL has allocators to have custom memory management, that are taken from rcutils. Tests while doing my Ada binding show that this works nicely. I'm now trying to understand where a message allocator is configured. For example, in the rosidl-generated bool__functions.h there is:

bool std_msgs__msg__Bool__Array__init(std_msgs__msg__Bool__Array * array, size_t size);

and in general any array message is dynamically allocated (I think). I'm trying to ascertain what I should add to my binding to also provide allocators for messages. Thanks for any pointers.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-23 02:03:00 -0500

amosteo gravatar image

Answering to myself, it is under evaluation: https://github.com/ros2/rosidl/issues...

edit flag offensive delete link more

Comments

Yeah definitely an issue with eventual consistency, the rosidl stuff is just older and hasn't been updated just yet.

William gravatar image William  ( 2018-10-23 18:35:44 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-06-29 05:27:33 -0500

Seen: 450 times

Last updated: Oct 23 '18