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

5 Ansichten (letzte 30 Tage)
준영
준영 am 29 Jan. 2024
Beantwortet: ag am 5 Feb. 2024
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?

Antworten (1)

ag
ag am 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.

Kategorien

Mehr zu Specialized Messages finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by