Giter VIP home page Giter VIP logo

Comments (3)

omangin avatar omangin commented on May 27, 2024 1

Hi @SimonNgj. By default, the software expects the pomdp-solve binary to be located in your $PATH.

If you used the commands from the README you need to make sure that ~/.local is in your $PATH.

Alternatively it's also possible to use the binary in the sample directory but you need to add the sample directory to your $PATH,

export PATH="$HOME/MyTest/task-models/samples/:$PATH"

In addition, I'll add a more meaningful error message when the solver binary cannot be found.

[EDIT] My bad, actually, there is already a check for the executable being found, so it seems that the issue is something else. Can you add the following line after line 16 in icra_scenario2pomdp.py, run it again, and post the output?

print('Solver path: {}'.format(p._solver_path))

from task-models.

SimonNgj avatar SimonNgj commented on May 27, 2024

My problem is solved now. Thank you so much @omangin. You're right. I just add
export PATH="$HOME/MyTest/task-models/samples/:$PATH"
before running: python icra_scenario2pomdp.py

Output: ....

Epoch: 498...7 vectors in 0.00 secs. (1.27 total) (err=1.00e-01)
Epoch: 499...7 vectors in 0.01 secs. (1.28 total) (err=1.00e-01)
Epoch: 500...7 vectors in 0.00 secs. (1.28 total) (err=1.00e-01)
++++++++++++++++++++++++++++++++++++++++
Solution found.  See file:
	tosolve.alpha
	tosolve.pg
++++++++++++++++++++++++++++++++++++++++
User time = 0 hrs., 0 mins, 1.23 secs. (= 1.23 secs)
System time = 0 hrs., 0 mins, 0.05 secs. (= 0.05 secs)
Total execution time = 0 hrs., 0 mins, 1.28 secs. (= 1.28 secs)

However, I don't know where do tosolve.alpha and tosolve.pg locate!!!

from task-models.

omangin avatar omangin commented on May 27, 2024

To answer your last question, they are generated in a temporary directory and deleted after being loaded by the code. You can check that in the source code of the solve method and eventually modify it if you need the files to be kept elsewhere.

from task-models.

Related Issues (6)

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.