How iochoa808/rantanplan works
RantanPlan accepts a planning problem through its CLI or Unified Planning integration, converts it for the C++ backend, preprocesses it, and searches for a plan using configurable semantics, encodings, and search modes. The graph preserves documented numeric, symmetry, interference, and propagator capabilities. Some internals are represented by their source directories because their wiring was not sampled; dashed edges indicate documented capabilities whose precise implementation link is unverified.
Main entry points: pipeline.cpp Preprocessing pipeline · strategy_factory.cpp Strategy factory · planners Planner search · grounded_encoder.cpp SMT encoding
Components 22
Python frontend
- Python planner
rantanplan/planner_wrapper.py - CNF compiler
rantanplan/cnf_condition_compiler.py
Problem model
- Protobuf exchange
rantanplan/cpp/src/problem/protobuf_io.cpp - Planning problem
rantanplan/cpp/src/problem/problem.hpp - Plan result
rantanplan/cpp/src/problem/plan.cpp
Preprocessing
- Preprocessing pipeline
rantanplan/cpp/src/passes/pipeline.cpp - Reachability grounding
rantanplan/cpp/src/grounding - Relaxed planning graph
rantanplan/cpp/src/analysis/numeric_relaxed_planning_graph.cpp - Action pruning
rantanplan/cpp/src/passes/action_pruning_pass.cpp - Goal achievers
rantanplan/cpp/src/abstraction/achievers_analysis.cpp - Interference analysis
rantanplan/cpp/src/analysis/interference_analysis.hpp - Symmetry breaking
rantanplan/cpp/src/symmetries/smt_symmetry_checker.cpp
Encoding and search
- Strategy factory
rantanplan/cpp/src/config/strategy_factory.cpp - SMT encoding
rantanplan/cpp/src/encoders/grounded_encoder.cpp - Parallel semantics
rantanplan/cpp/src/encoders/parallelism - Planner search
rantanplan/cpp/src/planners - PDLA search
rantanplan/cpp/src/planners/pdla_planner.cpp - Custom propagators
rantanplan/cpp/src/planners/propagators
Analysis and integration
- Configuration
rantanplan/cpp/src/config/config.hpp - Runtime diagnostics
rantanplan/cpp/src/util/logger.hpp
Other components
- CLI / UP user
- Z3 solver
Connections 30
- CLI / UP user → Python planner: submits problem
README.md - Python planner → CNF compiler: normalizes conditions
README.md - Python planner → Protobuf exchange: exchanges problem
README.md - Protobuf exchange → Planning problem: loads model
rantanplan/cpp/src/problem/protobuf_io.cpp - Planning problem → Preprocessing pipeline: enters preprocessing
rantanplan/cpp/src/passes/pipeline.cpp - Preprocessing pipeline → Reachability grounding: runs passes
README.md - Preprocessing pipeline → Relaxed planning graph: runs analysis
rantanplan/cpp/src/passes/pipeline.cpp - Preprocessing pipeline → Interference analysis: runs analysis
rantanplan/cpp/src/passes/pipeline.cpp - Preprocessing pipeline → Goal achievers: runs analysis
rantanplan/cpp/src/passes/pipeline.cpp - Preprocessing pipeline → Symmetry breaking: runs analysis
README.md - Relaxed planning graph → Action pruning: identifies removable actions
README.md - Action pruning → Planning problem: removes actions
rantanplan/cpp/src/problem/problem.hpp - Configuration → Strategy factory: selects strategy
- Preprocessing pipeline → Strategy factory: supplies analysis results
- Strategy factory → SMT encoding: creates encoder
- Strategy factory → Parallel semantics: creates semantics
- SMT encoding → Interference analysis: uses analysis
rantanplan/cpp/src/encoders/grounded_encoder.cpp - SMT encoding → Z3 solver: builds constraints
README.md - Parallel semantics → SMT encoding: defines step semantics
README.md - Strategy factory → Planner search: creates search planner
- Strategy factory → Custom propagators: creates propagator
- Planner search → SMT encoding: encodes horizons
rantanplan/cpp/src/planners/pdla_planner.cpp - Planner search → Z3 solver: solves constraints
README.md - Custom propagators → Z3 solver: extends solving
README.md - Strategy factory → PDLA search: selects PDLA search
- PDLA search → Goal achievers: uses achiever analysis
- Planner search → Plan result: produces plan
README.md - Python planner → Plan result: returns plan
README.md - Configuration → Runtime diagnostics: controls verbosity
rantanplan/cpp/src/util/logger.hpp - Planner search → Runtime diagnostics: reports progress
README.md