Ask Your Question
0

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

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

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
0

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

marguedas gravatar image

This looks like a duplicate of your previous question: https://answers.ros.org/question/2992...

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

Stats

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

Seen: 24 times

Last updated: Aug 01 '18