-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation/explanation for memory_rule_t/memory_conf_t? #37
Comments
One question I'd have fi would be: for messages containing other (nested) messages, like micro_ros_utilities_memory_rule_t rules[] = {
{"a.b", 4},
{"a.b.c", 5},
} to allocate for 4 instances of whatever type And how would (max) string[] my_strs Both |
No, we do not have any more documentation on that, it would great to improve this part. Regarding your second question, I should check in the codebase because I did it a long time ago, but as far as I remember sequences are not handled. So micro_ros_utilities_memory_rule_t rules[] = {
{"a.b", 4},
{"a.b.c", 5},
} This means that each Also, we should take a look at the sequences of string configuration. I will keep this open so we can do it after the micro-ROS Humble release (it is being time consuming). |
I'm confused. Isn't one of the main advantages of the rule-system the fact it makes setting up a msg structure with sequences much more convenient? Or are only
yes, that's what I wrote, isn't it (just making sure)? |
Sequence members individually. I mean you cannot specify that
That's right |
Yes, ok. Clear. It's always going to spec the same sizes for all members of a field, if that field is a sequence.
So contrary to how you'd access the data itself (by |
That's it |
Especially with more complex messages, the convenience of being able to use a set of
micro_ros_utilities_memory_rule_t
in amicro_ros_utilities_memory_conf_t
and pass that tomicro_ros_utilities_create_message_memory(..)
is very nice.I've not been able to locate any documentation for this feature though, other than Handling messages memory in micro-ROS - micro-ROS Galactic and beyond. That section shows a very terse example of specifying a set of rules for the example message, but doesn't go into very much detail.
Would you have any additional documentation available for this feature, specifically the structure of the rules and how they should match fields?
The text was updated successfully, but these errors were encountered: