Giter Club home page Giter Club logo

Comments (6)

lchrpa avatar lchrpa commented on August 11, 2024 1

Hi Sebastian,

Oh, thanks for pointing out the issue. You are right, it should be:

snprintf(tmp, MAX_STR_LEN, COMMAND_LPG_1SOL_REPLAN, TOOLDIR, seed, inputplan);

I guess the issue occurred after I fixed the offline version (which share commands with the online one).

Apologies for my omission.

from app-trapper.

ssardina avatar ssardina commented on August 11, 2024

Does this work for you @lchrpa ? The offline works perfectly though

from app-trapper.

ssardina avatar ssardina commented on August 11, 2024

It seems it does not like:

#define COMMAND_LPG_1SOL "%s/lpg -f pfile.pddl -o domain.pddl -out soln.tmp -n 1 -seed %d -cputime 60 -nobestfirst -inst_with_contraddicting_objects -same_objects"

Interestingly, the line just after in the else does work well:

 snprintf(tmp, MAX_STR_LEN, COMMAND_LPG_1SOL_REPLAN, seed, inputplan);

where:

#define COMMAND_LPG_1SOL_REPLAN "%s/lpg -f pfile.pddl -o domain.pddl -n 1 -seed %d -cputime 60 -input_plan %s"

What I don't understand is how the first %s is filled in in both cases?!?! In fact, if I delete %s from the first one, it does compile well.

That %s is the path to the executable lpg, don't we need to pass that data in those lines?

from app-trapper.

ssardina avatar ssardina commented on August 11, 2024

Following it a bit more, shouldn't the %s be filled with __TOOLDIR__? I don't understand how the line:

 snprintf(tmp, MAX_STR_LEN, COMMAND_LPG_1SOL_REPLAN, seed, inputplan);

happens to work, because COMMAND_LPG_1SOL_REPLAN has three placeholders, but we are only filling two: seed and inputplan.

I am clearly missing something big here due to my lack of C knowledge!

from app-trapper.

ssardina avatar ssardina commented on August 11, 2024

I propose this change:

Uploading image.png…

from app-trapper.

ssardina avatar ssardina commented on August 11, 2024

Thanks for confirming Lukas!

from app-trapper.

Related Issues (10)

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.