|
symbolic
|
#include <state.h>
Classes | |
| class | iterator |
Public Types | |
| using | IndexedState = Eigen::Array< bool, Eigen::Dynamic, 1 > |
Public Member Functions | |
| StateIndex (const std::vector< Predicate > &predicates, bool use_cache=true) | |
| Proposition | GetProposition (size_t idx_proposition) const |
| size_t | GetPropositionIndex (const Proposition &prop) const |
| State | GetState (Eigen::Ref< const IndexedState > indexed_state) const |
| IndexedState | GetIndexedState (const State &state) const |
| size_t | size () const |
| iterator | begin () const |
| iterator | end () const |
| const Pddl & | pddl () const |
Database to convert between indexed and regular state.
States are represented as Eigen boolean arrays.
|
explicit |
Construct the index from the given predicates.
| predicates | Pddl predicates. |
| use_cache | Cache proposition lookups. |
| StateIndex::IndexedState symbolic::StateIndex::GetIndexedState | ( | const State & | state | ) | const |
| Proposition symbolic::StateIndex::GetProposition | ( | size_t | idx_proposition | ) | const |
Get a proposition from the index.
| idx_proposition | Index of proposition. |
| size_t symbolic::StateIndex::GetPropositionIndex | ( | const Proposition & | prop | ) | const |
| State symbolic::StateIndex::GetState | ( | Eigen::Ref< const IndexedState > | indexed_state | ) | const |
Convert the indexed state to a full state.
| indexed_state | Indexed state. |
|
inline |
Size of indexed state (total number of propositions).
1.8.17