Git Product home page Git Product logo

Comments (5)

ekolve avatar ekolve commented on May 22, 2024

Could you send me the following? Immediately after calling Initialize:

event = controller.step(dict(action='Initialize', gridSize=GRID_SIZE))
print(event.metadata['agent']['position') # Add this to the 

and at the point just prior to passing through the wall from the 'MoveAhead' action print out the agent position again and send that. If you can capture grab the image as well that would be helpful.

I checked all the walls for that and couldn't find any part that was missing a collider - as well I used a different agent to manually control the movement and explored the entire room and couldn't find a spot that allowed me to pass through.

from ai2thor.

YangZhang4065 avatar YangZhang4065 commented on May 22, 2024

Sure. Here are the images&locations of the agents upon initialization, before crossing the wall and after crossing the wall.

import ai2thor.controller
from matplotlib import pyplot as plt

GRID_SIZE=0.5

controller = ai2thor.controller.Controller()
controller.start()
controller.reset('FloorPlan223')
event=controller.step(dict(action='Initialize', gridSize=GRID_SIZE))
#initialization
print(event.metadata['agent']['position'])

{'y': 1.0, 'z': -0.5, 'x': -1.0}

plt.imshow(event.frame, interpolation='nearest')
plt.show()

image

#two steps before acrossing the wall
for i in range(5):
   event=controller.step(dict(action='MoveAhead'))
print(event.metadata['agent']['position'])

{'x': -1.0, 'y': 0.9800000190734863, 'z': 2.0}

plt.imshow(event.frame, interpolation='nearest')
plt.show()

image

#right before acrossing the wall
event=controller.step(dict(action='MoveAhead'))
print(event.metadata['agent']['position'])

{'x': -1.0, 'y': 0.7721520662307739, 'z': 2.5}

plt.imshow(event.frame, interpolation='nearest')
plt.show()

image

#right after acrossing the wall
event=controller.step(dict(action='MoveAhead'))
print(event.metadata['agent']['position'])

{'x': -1.0, 'y': -5450.7158203125, 'z': 3.0}

plt.imshow(event.frame, interpolation='nearest')
plt.show()

image

from ai2thor.

ekolve avatar ekolve commented on May 22, 2024

Okay, I am able to reproduce this now.

from ai2thor.

ekolve avatar ekolve commented on May 22, 2024

Issue is fixed with latest release, please upgrade to version 0.0.14

from ai2thor.

YangZhang4065 avatar YangZhang4065 commented on May 22, 2024

Thank you!

from ai2thor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.