To change the output dimension of a block

조회 수: 1 (최근 30일)
hh
hh 2023년 2월 20일
답변: Walter Roberson 2023년 2월 20일
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
hh
hh 2023년 2월 20일
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 2023년 2월 20일
Perhaps a single-line sensor simulation reading is needed.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2023년 2월 20일
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)

카테고리

Help CenterFile Exchange에서 Reinforcement Learning에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by