Code Monkey home page Code Monkey logo

Comments (3)

zyzhang1130 avatar zyzhang1130 commented on July 16, 2024

I tried to use teleport to reset agent's position without affecting environment:
env.step(action='Teleport', x=0.999, y=1.01, z=-0.3541)

but got error:TypeError: step() got an unexpected keyword argument 'x'
So apparently 'env' is not the same as 'controller' in ai2thor. I'm not sure how to use controller.step(action='Teleport', x=0.999, y=1.01, z=-0.3541) in your implementation. Mind to give any advice?

Thanks.

from cups-rl.

zyzhang1130 avatar zyzhang1130 commented on July 16, 2024

It occurred to me that the current wrapper does not permit teleport. Then is there any way to save the environment setting (everything apart from the agent) and load it later?

from cups-rl.

zyzhang1130 avatar zyzhang1130 commented on July 16, 2024

also when I choose not to reset the environment by commenting both line 141 and 157 it gives me this error:
AttributeError: 'NoneType' object has no attribute 'metadata'

when it ran line 132:
next_state, _, done = env.step(np.random.randint(0, action_space))

Does this line just let agent make a random movement and what could be the possible reasons for the error?

from cups-rl.

Related Issues (18)

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.