Coder Social home page Coder Social logo

Comments (8)

alvalentini avatar alvalentini commented on August 29, 2024

@MFaisalZaki can you attach the PDDL files?

from unified-planning.

MFaisalZaki avatar MFaisalZaki commented on August 29, 2024

Sure, here are the files.
freecell-strips-typed.zip

from unified-planning.

alvalentini avatar alvalentini commented on August 29, 2024

Try with this code:

from unified_planning.shortcuts import get_environment
get_environment().error_used_name = False

from unified-planning.

alvalentini avatar alvalentini commented on August 29, 2024

@MFaisalZaki Does it solve your problem?

from unified-planning.

MFaisalZaki avatar MFaisalZaki commented on August 29, 2024

@alvalentini sorry I did not have time to check it, but I plan to check your suggestion this week, and I'll keep you posted.

from unified-planning.

MFaisalZaki avatar MFaisalZaki commented on August 29, 2024

@alvalentini, sorry for the late reply. Yeah, this flag works.

from unified-planning.

MFaisalZaki avatar MFaisalZaki commented on August 29, 2024

Hi @alvalentini,

I'm sorry for reopening this issue again. But I still get this error even after setting the flag to False.

from unified_planning.io import PDDLReader
from unified_planning.shortcuts import *

up.shortcuts.get_environment().error_used_name = False

domainfile = 'domain.pddl'
problemfile = 'problem.pddl'

task = PDDLReader().parse_problem(domainfile, problemfile)

bug

Here are the files to reproduce: bug.zip

Thanks.

from unified-planning.

alvalentini avatar alvalentini commented on August 29, 2024

Hi @MFaisalZaki! In this case you have the name p3 used for multiple Objects. This is not allowed even if you set the flag error_used_name to False.

With the flag set to False is only possible to use the same name for different elements of the problem (e.g. an Object and an Action).

from unified-planning.

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.