allenai / ai2thor

An open-source platform for Visual AI.
http://ai2thor.allenai.org
Apache License 2.0
1.15k stars 215 forks source link

Bounds for agent position/rotation/horizon #255

Open rkruegs123 opened 5 years ago

rkruegs123 commented 5 years ago

What are the bounds for x/y/z in position and rotation, and for horizon?

roozbehm commented 5 years ago

Please refer to the documentation for navigation actions to see how to get the coordinates for navigable points and rotation and horizon values.

rkruegs123 commented 5 years ago

I understand how to use the navigation actions and how to retrieve the coordinates. My question pertains to the bounds of the position and rotation vectors given by event.metadata['agent']['position'] and event.metadata['agent']['rotation']. What are the minimum and maximum values for x/y/z in both vectors?

roozbehm commented 5 years ago

Then, it is just simply finding the minimum and maximum x in the list of points. Or are you looking for something else?

rkruegs123 commented 5 years ago

Given an event, it is not just that I am interested in the current min/max. I am interested in the min/max for every possible point.

In simpler terms, one of my questions would be: What is the range of possible values for event.metadata['agent']['position']['x']? Is there any better answer for this aside from just using the reachable positions and getting a minimum and maximum manually?

roozbehm commented 5 years ago

No, we do not have a function for that.

thomason-jesse commented 4 years ago

It looks like sceneBounds in the newer release gives this information.