Coder Social home page Coder Social logo

aria-systems-group / sym_quant_reactive_synth Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 869 KB

Symbolic Regret synthesis and graph search

License: MIT License

Dockerfile 0.11% Python 90.78% PDDL 8.87% Shell 0.24%
bdd pddl symbolic-graphs two-player-game

sym_quant_reactive_synth's People

Contributors

muvvalakaran avatar

Watchers

 avatar

sym_quant_reactive_synth's Issues

AssertionError in BA Set and cVal set computation

What: AssertionError.

I get the following error

Traceback (most recent call last):
  File "/root/symbolic_planning/src/main.py", line 225, in <module>
    regret_synthesis_handle.solve(verbose=False, just_adv_game=False, run_monitor=True, monolithic_tr=MONOLITHIC_TR)
  File "/root/symbolic_planning/src/src/symbolic_graphs/strategy_synthesis_scripts/franka_symbolic_regret_main.py", line 157, in solve
    self.graph_of_utls_handle.get_best_alternatives(mod_act_dict=self.mod_act_dict,
  File "/root/symbolic_planning/src/src/symbolic_graphs/symbolic_regret_graphs/symbolic_graph_of_utility.py", line 460, in get_best_alternatives
    assert self.ba_set.issubset(self.leaf_vals), f"Error computing set of beat alternatives. The BA set: [{self.ba_set}] should be a subset of utility values [{self.leaf_vals}]"
AssertionError: Error computing set of beat alternatives. The BA set: [{1.0, 3.0, 4.0, 5.0}] should be a subset of utility values [{1, 3, 4}]

When: running a simple 2 block 5 loc example with weighting_factor=3 for Regret Synthesis code with and without Monolithic TR flag set to true.

Why: The cause of the problem is this line. Is this logic correct?

Problem File:

(define (problem dynamic_only_franka_world) (:domain dynamic_franka_box_world)
(:objects

    ;;;;; Locs where only the robot can operate ;;;;;
    
    l0 - box_loc
    l1 - box_loc

    ;;;;; Locs where the robot & human can operate ;;;;;
    ; NOTE: The way pyperplan parses the PDDL file, you need atleast two human locs to construct `human-move` action

    l6 - hbox_loc
    l7 - hbox_loc
    ;l8 - hbox_loc

    b0 - box
    b1 - box
)

;todo: put the initial state's facts and numeric values here
(:init
    (ready else)
    
    (on b0 l0)
    (on b1 l6)

)

(:goal 
(and
    (on b0 l0)
))

)

Task:

 F(p01 | p17)

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.