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

5 vues (au cours des 30 derniers jours)
준영
준영 le 29 Jan 2024
Réponse apportée : ag le 5 Fév 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?

Réponses (1)

ag
ag le 5 Fév 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.

Catégories

En savoir plus sur Specialized Messages dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by