To change the output dimension of a block

1 visualización (últimos 30 días)
hh
hh el 20 de Feb. de 2023
Respondida: Walter Roberson el 20 de Feb. de 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 comentarios
hh
hh el 20 de Feb. de 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 el 20 de Feb. de 2023
Perhaps a single-line sensor simulation reading is needed.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 20 de Feb. de 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