Closed knightcalvert closed 1 year ago
Hi @knightcalvert,
Observation for each individual agent is a dictionary with multiple key value pairs. Refer here and here, which describes the observation structure and the formatted observation.
We should cast the desired individual components of the observation to tensors, rather than casting the entire observation into a tensor.
If you need further clarification, providing a minimal working code along with the question, will enable us to provide more specific assistance.
High Level Description
my simplified observations looks like:
Version
1.4.0
Operating System
No response
Problems
i can't convert this obs into tensors
tensor = th.tensor(obs, dtype=dtype, device=self.device)
, i'm so confused about what type the waypoint or via etc. is, could someone give me a simple example aboutdef get_obs(self):
anddef get_state(self):
thank you for your reply