jason-lang / jason_ros

Jason and ROS integration
GNU General Public License v3.0
6 stars 2 forks source link

Reformulate perception #9

Closed Rezenders closed 5 years ago

Rezenders commented 5 years ago

usar API da classe jason…Agent addBel delBel e cia

     getTS().getAg().addBel(bel)
    getTS().getAg().getBB().

        getBB().contains(l)
        getBB().getCandidateBeliefs(new PredicateIndicator("altidude", 1));

        Iterator<Literal> ibb =  getBB().getCandidateBeliefs(new PredicateIndicator("altidude", 1));
        while (ibb.hasNext()) {
             Literal l = ibb.next();
             // if for altidude e diferente do atual
             //    ibb.remove();
             // add event for l
        }

// no futuro: get annots source(percept)

Rezenders commented 5 years ago

https://github.com/CArtAgO-lang/cartago/blob/master/src/jaca/java/jaca/CAgentArch.java

Rezenders commented 5 years ago

Done at f9cc244