Ray Spaces Support

**1. Severity of the issue: **
Medium: Significantly affects my productivity but can find a workaround.

Hi community, I’ve been building a tool to use RLlib with Unreal Engine, but right now I’m facing an issue that I can’t find an answer. I have tried to implement a utility to use the six types of spaces of rllib, for obs and actions, however I have realized that I can only use Box and Discrete. Any attempt to use Multibinary, or Multidiscret leads me to any of this errors:

RuntimeError: Running the example script resulted in one or more errors! [NotImplementedError('Unsupported action space: MultiBinary(8)')]

or

RuntimeError: Running the example script resulted in one or more errors! [ValueError('No default encoder config for obs space=MultiDiscrete([30 30 30 30 30 30 30]), lstm=False found.')]

Until now I haven’t tried to use Dict or Tuple because they are a little more complex to implement, but I think I will find similar problem there.

More explicitly, I am using my own implementation of tcp_client_env_runner. It works when I use Box or Discrete either in obs or actions, but not with other spaces. My question is, does RLLib support this other spaces for actions and obs? if not, why are they included? or are they just mentioned because they belong to Gymnasium but not to RLLib?

You can find my implementation of multiagent here in case is useful:

Thanks!

Hi, reading the error message, this seems to be one of those various encoder topics in new RLlib API stack. Have you already created an issue for that on GitHub?

No, not yet, however I found out that for obs it seems you can only use Box, any attempt to use the other spaces raises the error of encoder, I haven’t tried with Tuple and Dict though. For actions I found out that you can use Discrete, Box and Multidiscrete, but Multibinary raises the error of Unsupported action space. Didn’t try with Dict or Tuple.

I leave it that way by now, because I can handle the use cases with this, but for future implementation, i.e Dict for Camera sensors, I will need to explore if it is supported.