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

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
0

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

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

Question Tools

1 follower

Stats

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

Seen: 444 times

Last updated: Aug 01 '18