ROS multi array, Is it possible to change the maximum value of the array.

5 次查看(过去 30 天)
As described above, when the message signal value is an array, the maximum value is fixed at 128.
How do I change the maximum value to be larger?

回答(1 个)

ag
ag 2024-2-5
Hi,
I assume that by "maximum value," you are referring to the maximum array length.
By default, the fixed length is 128 for primitive types (e.g., uint8[], float32[]), and 16 for nested arrays of messages. These limits can be modified by following the steps below:
  • Open your model in Simulink, and then from the Simulation tab, select "Variable size Messages" under "ROS Toolbox" as shown below.
  • From the list box on the left, click on sensor_msgs/JointState. Then, unselect the Use default limits for this message type checkbox. Finally, enter the new value (256) in the row for the Position array property, and click OK to close the dialog.

类别

Help CenterFile Exchange 中查找有关 Specialized Messages 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by