필터 지우기
필터 지우기

The second input argument "agentBlk" must be a block path to a valid "RL Agent" block.

조회 수: 21 (최근 30일)
mustafa
mustafa 2024년 7월 4일 12:33
댓글: Ayush Aniket 2024년 7월 15일 5:12
When I try to define environment for walking robot, I receive this error:
>> SACAgentForWalkingRobot
Error using rlSimulinkEnv (line 113)
The second input argument "agentBlk" must be a block path to a valid "RL Agent" block.
Error in SACAgentForWalkingRobot (line 16)
env = rlSimulinkEnv(mdl, blk, observationInfo, actionInfo);
This error is inside rlSimulinkEnv and it cannot validate RL Agent blocks.
I try to change Walking Robot -- DDPG Agent Training Script (2D) to SAC Agent Training.
  댓글 수: 1
Ayush Aniket
Ayush Aniket 2024년 7월 15일 5:12
Hi mustafa,
The error indicates that the input to the agentBlocks argument (path to the RL Agent block in the model) in the rlSimulinkEnv function is not correct. Can you share the code and model you are using?

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by