Can LoggedSignal in provided Link contain more than just the state?

Illustration
harry_marcel - 2021-05-22T12:32:57+00:00
Question: Can LoggedSignal in provided Link contain more than just the state?

In this link, LoggedSignals is used as the State. However lets say I wanted LoggedSignals to contain three matrices or three vectors, one of them being the actual state. Could I contain those three matrices in LoggedSignal and then just let observation have the actual next state. Additionally if that is allowed, how would I define my observation info, would I use rlFiniteSetSpec or rlNumericSpec (My offical state would just be a binary vector of size N but I want to have two other matrices, x and y lets say, so that I can utlilze them in myStepFunction.m)  

Expert Answer

Profile picture of John Michell John Michell answered . 2025-11-20

LoggedSignals is not tied to the state or the observations, so you should be able to store whatever makes sense to you in that variable without changing the definition of your observation space. In fact, if you run
 
 
rlCreateEnvTemplate('myenv')
to get a template for a custom MATLAB environemt, you see that LoggedSignals is set to be empty.
 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!