To change the output dimension of a block

1 view (last 30 days)
hh
hh on 20 Feb 2023
Answered: Walter Roberson on 20 Feb 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 Comments
hh
hh on 20 Feb 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 on 20 Feb 2023
Perhaps a single-line sensor simulation reading is needed.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 20 Feb 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!