ai2thor icon indicating copy to clipboard operation
ai2thor copied to clipboard

Is there a way to get first view information in real time while using TeleportFull?

Open lianglanjun opened this issue 3 years ago • 4 comments

Hi, Is there a way to get first view information in real-time while using TeleportFull or during moving? I am looking forward to your reply. Thank you.

lianglanjun avatar Feb 13 '22 10:02 lianglanjun

Hi @lianglanjun, can you clarify what you mean by first view information in real-time?

mattdeitke avatar Feb 13 '22 20:02 mattdeitke

@mattdeitke I mean that when the agent is moving, can I get the current agent's perspective at any time?

lianglanjun avatar Feb 14 '22 10:02 lianglanjun

I can now use TeleportFull to move the agent from the current position A to another position B and then get the perspective image of the agent at B. Can I get the perspective image of the agent between positions A and B? Thank you.

lianglanjun avatar Feb 14 '22 11:02 lianglanjun

Hi @lianglanjun,

The current agent's perspective should be accessible with Event.frame: https://ai2thor.allenai.org/ithor/documentation/environment-state/#event-frame. If you want the perspective image between positions A and B, have you considered only moving the agent halfway between the points, and use Event.frame to get the agent's perspective image from there?

mattdeitke avatar Feb 16 '22 05:02 mattdeitke