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

5 views (last 30 days)
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?

Answers (1)

ag
ag on 5 Feb 2024
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.

Categories

Find more on Specialized Messages in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!