Closed Ryanf55 closed 5 months ago
Hello @Ryanf55, this proposal LGTM, could you open a PR with a code proposal so we can discuss there?
I don't actually have a great idea of how to do this without assuming the message structure/naming of ROS messages. Any recommendations are welcomed.
I'm gonna take a look internally to check the possibilities. I will report back.
This is the related PR removing this hardcoded "100" value: https://github.com/eProsima/IDL-Parser/pull/111
But this implies updating Micro-XRCE-DDS-Gen to latest IDL-Parser.
@Ryanf55 could you check this PR: https://github.com/eProsima/Micro-XRCE-DDS-Gen/pull/74
I have updated IDL-Parser and added -default-container-prealloc-size
CLI option, so now you should be able to set the default size of sequences to a defined value.
Could you give a try?
@pablogs9, thanks for this change. I've used #74 to generate the bindings for the ArduPilot DDS library and it appears to work as expected on the two message types affected: sensor_msgs/Joy
and tf2_msgs/TFMessage
.
Right now, MicroXRCEDDSGen hard codes a size of 100 for arrays.
As a user, there is no way to adjust this at configure time. For an embedded system like ArduPilot, 100 transforms, or 100 joystick inputs, is far too many. We would like to configure these for our application. Perhaps through a define?