Ask Your Question

How is the size of a string allocated in ROS2 idl ?

asked 2018-08-01 08:44:49 -0600

aks gravatar image

How is the size of a string dynamically allocated while converting msg to idl. Is there a possibility to limit this size ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-08-01 10:32:23 -0600

marguedas gravatar image

This looks like a duplicate of your previous question:

To see how to define bounded strings in ROS2 you can refer to the Interface Definition design document:

a string with an upper boundary: string<=N to limit the length of the string to N characters

An example of message definition using bounded strings is available here

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-08-01 08:44:49 -0600

Seen: 96 times

Last updated: Aug 01 '18