To change the output dimension of a block

1 vue (au cours des 30 derniers jours)
hh
hh le 20 Fév 2023
I am currently using the Mobile Robotics Training Toolbox to create simulink code for line tracer using reinforcement learning.
But there's an error now.
How do I change the output dimension of the line sensor block in the mobile robotics training library?
This is the error that appears below.
  4 commentaires
hh
hh le 20 Fév 2023
In line sensor simulations (size 1), we are having trouble understanding that dimensions are not appropriate to provide "observation" (size 4) inputs to "RL agents". So I think I connected the Resape block without knowing it well.
hh
hh le 20 Fév 2023
Perhaps a single-line sensor simulation reading is needed.

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 20 Fév 2023
If you need groups of four sensor readings to become the input, then use a buffer block.
However I suspect that instead you need either four different sensors or a sensor that provides four output values (for example x y z signal-strength)

Community Treasure Hunt

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

Start Hunting!

Translated by