robot-control-stack icon indicating copy to clipboard operation
robot-control-stack copied to clipboard

Implement a way to get current observation from envs

Open juelg opened this issue 2 years ago • 1 comments

There should be a way to get the current observation from our gym env and wrappers without having the need to issue an action. This is for example useful when we want to give a foundation model the current robot state in async mode which already includes the change induced by the current action.

We came up with two ideas on how to do this:

  • Implement public get_obs method in all gym envs that returns the current state. This requires modify the gym interface and might cause problems with typing
  • Allow "zero" action which does nothing and just returns the current observation. This would require to case check in the beginning of each step function.

juelg avatar Sep 10 '24 12:09 juelg

Async is not supported by RCS. Other problems that could require this solution like multiple robots, have been solved differently. So there is no longer need for this feature.

juelg avatar Apr 28 '26 09:04 juelg