<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Goal-based Deliberation for Cyber-Physical Systems?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Arthur Bit-Monnot</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Sassari</institution>
          ,
          <addr-line>Sassari</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In the recent years, the field of model-based Artificial Intelligence for goal-based autonomy have seen impressive developments in its capacity to tackle large problems. This development however, was done at the price of maintaining coarse abstractions on the system's model and on the environment. The need to improve the capability of Cyber-Physical Systems to autonomously derive and execute complex strategies to fulfill some imposed tasks poses the question of the pertinence of such abstractions for systems that are directly embedded in the physical world. Cyber-Physical Systems are indeed characterized by a continuous state, subject to various constraints reflecting physical limits, safety margins in the controller as well as formal requirements regarding their operation. In this work, we aim at developing models and algorithms for automated reasoning in the context of Cyber-Physical Systems. The focus is put on the development of planning techniques that account for the continuous state of Cyber-Physical Systems and their particular operating constraints.</p>
      </abstract>
      <kwd-group>
        <kwd>Planning</kwd>
        <kwd>Cyber-Physical Systems</kwd>
        <kwd>Constraint-based rea- soning</kwd>
        <kwd>Robotics</kwd>
        <kwd>Motion Planning</kwd>
        <kwd>SMT</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>The research fields of model-based deliberation have evolved differently
depending on whether they target a general view of intelligence (in AI) or systems with
a physical embodiment (as in Robotics). This separation of concerns has enabled
the development of a wealth of efficient dedicated methods targeting each field’s
particular problems but have only been be loosely integrated.</p>
      <p>Indeed, research in AI, and in particular in planning and scheduling, has been
more concerned with the high-level discrete decisions that must be taken to build
a successful and high-quality plan while abstracting away most of the lower level
details of the system. On the other hand, decision problems for Cyber-Physical
Systems have to deal with the physics associated with the state of the system
? The research of Arthur Bit-Monnot has been funded by the EU Commission’s H2020</p>
      <p>Programme under grant agreement N.732105 (CERBERO project).
and are often deeply concerned with the metric and temporal environment in
which the system evolves.</p>
      <p>A typical use case that illustrates the strong coupling between high-level
strategies and low-level state and constraints is the one of planetary exploration
rovers. Such systems face a variety of high-level tasks (navigation, observation,
manipulation, sampling, communication) that must be scheduled and balanced
with lower level constraints regarding terrain, actuators’ limits, bandwidth, or
battery level. The cost of deploying and operating such systems mean that (i)
operations must be planned in a near optimal way to get the maximal scientific
return, and (ii) the system must obey strong safety requirements to make sure
it remains functional over long periods of times. The physical and functional
limits of the system are key in the definition of a high-level strategy as one must
guarantee that a plan can be refined into a safe continuous state trajectory.</p>
      <p>While research in AI planning and scheduling has been mostly concerned with
discrete and abstract models, the continuous numeric state of a Cyber-Physical
System (CPS) imposes additional non-independent decision. For instance,
requesting an exploration rover to go to a given point will require planning a
feasible path to reach the target location. Such a path is subject to constraints
originating from its discrete state (e.g. speed limits when carrying a sampled
rock) and of its numerically modeled environment (e.g. location of obstacles,
sun exposition). Such constraints impact the feasibility of a given path and of
the high-level plan that would require it. In addition, the trajectory taken by the
robot impacts the high-level strategy, for instance through an increased battery
consumption or arrival time that might impede further activities.</p>
      <p>As a result, providing plans that have a high probability of success must
account for the low-level dynamics and requirements of the system. In addition,
the formal requirements for the operation of such systems often span over both
the discrete and continuous states of the system and must be accounted for in
the decision process as they constitute strong conditions for the validity of a
goal-oriented strategy.</p>
      <p>General Objective The objective of our work is to provide automated reasoning
techniques targeting goal-oriented autonomy for Cyber-Physical Systems that
account both for high-level objectives and the low-level continuous numeric state.
In particular, we aim at tightly integrating constraint-based task planning with
solvers accounting for the continuous state of a CPS; providing a unified model
and framework for goal-based autonomy with strong guarantees on the system’s
operation.
2</p>
    </sec>
    <sec id="sec-2">
      <title>State of the Art</title>
      <p>
        Work in task planning and scheduling has focused mostly on discrete problems
where the state of the system is subject to discrete changes at specific
happenings. This restriction has enabled the development of efficient techniques
centered on the use of heuristic search in planning [
        <xref ref-type="bibr" rid="ref6 ref7">6,7</xref>
        ] and constraint
programming in scheduling [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Task planners’ high dependency on heuristics is however
a shortcoming of forward-search planners as the accuracy of distance-estimators
typically depends on many restrictive assumptions on the problems, making the
extension of those planners to more expressive settings a very hard task. While
constraint-based scheduling techniques offer a more flexible framework, there is
still a gap to encode general planning problems as well as low-level dynamics
over continuous states [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Recent attempts at extending task planning with a
more expressive formalism focused on numeric states and processes are still in
their infancy and are far from the scalability of the state-of-the-art techniques
[
        <xref ref-type="bibr" rid="ref4 ref5">5,4,17</xref>
        ].
      </p>
      <p>On the other hand, the robotics field has seen a steady progress on planning
and controlling the motion of a robot in its physical environments, with now well
established methods and tools [13]. Of particular interest to us is the current
trend of encoding the problem as constraint optimization problems over the
(finely discretized) continuous state trajectory of the system [18,16].</p>
      <p>
        The last few years have seen an important developments on the problem of
joint Task and Motion Planning (e.g. [
        <xref ref-type="bibr" rid="ref1 ref8 ref9">1,9,8</xref>
        ]) which is of particular interest to
us because it represents a special and well understood sub-class of the problem
of planning for Cyber-Physical Systems. However, most of the work has focused
on geometrically demanding manipulation problems with minimal interactions
regarding task-level requirements [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. In particular, with one exception [14],
such work is focused on a single robot and does not handle time and resources
which are critical in the operation of most real world systems.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Past and Current Research</title>
      <p>Our work towards developing a framework for goal-based autonomy for
CyberPhysical Systems (CPS) could be coarsely characterized in three parts:
– Develop and improve constraint-based models for discrete task planning,
targeting scalability, support for incremental online plan adaptation as well as
lazy learning as a mean for extension.
– Generalize existing work in robotics for handling continuous state as
nonlinear optimization problems.
– Tightly integrate the discrete and continuous solvers through means of lazy
learning, the continuous state solver acting as a theory solver with respect
to the discrete solver.
3.1</p>
      <sec id="sec-3-1">
        <title>Constraint-based Planning</title>
        <p>An important requirement for our research project is to have a mean to solve
planning and scheduling problems that:
1. can scale to large discrete problem featuring resources, multiple agent and
temporally-extended requirements,
2. is adapted for online plan adaptation, and
3. can be extended towards techniques targeting the continuous numeric state.</p>
        <p>Our work here has been focused on the use of constraint-based models for
temporal planning and scheduling. Compared to heuristic search in state-space
which is the standard in automated planning research, the proposed
constraintbased approach is particularly appealing by (i) its capacity to incrementally
incorporate additional constraints and (ii) the fact that it does not rely on
elaborate heuristics. The former is critical for the envisioned way of integrated
reasoning on continuous state through lazy learning and for handling online plan
adaptation. The latter is critical in that the reliance of forward-search planners
on extremely accurate heuristics comes as a liability when trying to support
complex domains that arise when operating on real CPSs.</p>
        <p>
          We developed an encoding for temporal planning where (i) actions are
encoded as optional chronicles and (ii) action parameters and temporal variables
are lifted and related by constraints [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ], which is inspired by recent results in the
field of constraint-based planning and scheduling [
          <xref ref-type="bibr" rid="ref10 ref2">2,10</xref>
          ]. We showed that such a
representation can be exploited by off-the-shelf SMT solvers with performance
comparable to state-of-the-art planners on temporal problems [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. The proximity
of the encoding with the one of constraint-based scheduling solvers additionally
opens up the possibility of reusing those as an alternative backend [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ].
        </p>
        <p>More importantly the use of constraint-based solvers, and SMT in particular,
enables the use of clause learning as a way to support more specialized solvers
targeting the continuous state of CPSs.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Handling Numeric Continuous State</title>
        <p>The key idea for handling continuous state is to provide a constraint satisfaction
and optimization solver that acts as a theory solver with respect to the
discrete planner. The continuous state is subject to a fined-grained discretization
resulting in a non-linear constraint satisfaction problem.</p>
        <p>We build on recent insights from the robotics community in the use of
optimization techniques for trajectory and motion planning [18,16] and generalize
those techniques towards more general requirements over the continuous state
rather than the physical occupancy of the robot only.</p>
        <p>Our time-oriented constraint based model allows us to reason at an abstract
level on the limited set of happenings at which specific state features of the
system are constrained. Here, we detail our scheme to reason on the continuous
state evolution between happenings.</p>
        <p>Our approach is based on the following ideas:
– The partial state evolution between two happening is finely discretized. Each
sampled partial state results in a set of decision variables representing, e.g.,
the configuration of a mobile robot or the level of a battery.
– A nonlinear constraint satisfaction problem is formulated in which the
decision variables in sampled states are related with constraints encoding:
state dynamics, e.g., the distance between two sample poses of a robot
must obey velocity and acceleration limits;
constraints originating from the task-level plan, that might be placed on
a particular timepoint (e.g. the pose of the robot must be in a given area)
or over a temporal interval (e.g. the battery level is linearly increasing
during a recharge action);
constraints representing requirements on the hybrid state, e.g., the arm
of a robotic manipulator must remain still while navigating;
implicit general constraints, e.g., there must be no collision between any
of the robot’s poses and its environment or the battery level must always
remain above a given threshold.</p>
        <p>The resulting problem cannot be expected to be convex in the general case
making it untractable to prove the presence or absence of a satisfying assignment.
To overcome this, a constraint satisfaction problem is turned into a nonlinear
optimization problem with the objective of minimizing the squared error on each of
the constraints. Given an initial assignment, efficient techniques such as
GuaussNewton or Levenberg-Marquardt are available to drive it into a local optimum
in which constraint violations are minimized. In practice, the generation of
nonlinear optimization problems over the variables of the partial states is expected
to result in problems with a large number of variables. However, the constraints
that result from constraining the state evolution typically relates the variables
of a state sample only with the variables of the directly preceding and following
state samples. This particular structure yields very sparse optimization problems
with a banded structure and can be exploited by nonlinear solvers [15]. This fact
has been notably leveraged in the context of trajectory planning to provide fast
online trajectory replanning in an environment with dynamic obstacles [16].</p>
        <p>This scheme of considering the fulfillment of constraints on the continuous
and numeric state globally as a constraint optimization problem has several
advantages:
– Assignment to numerical parts of the problem is delayed and handled by the
specialized solver. A key benefit is that the high-level solver does not need
to commit to such values which would require elaborate heuristics. This
overcomes one of the major difficulties of joint task and motion planning.
– When the problem has a “simple” solution, it can be found very quickly and
without backtracking on variable assignments.
– On the occurrence of discrepancies between the planned state and the actual
one at execution time, a previous solution can be very efficiently adapted to
remain within safety bounds by reoptimizing it.</p>
        <p>In practice, this approach provides us with a formalism to tackle the problem
of refining high-level plans into detailed state trajectories that can be checked
for feasibility and safety. Importantly, a set of trajectories can be continuously
adapted by means of reoptimization to account for the monitoring feedback,
providing online adaptation, coordination and collision avoidance. Treating this
problem of refining a plan into low-level primitives as a global optimization
problem allows us to treat it in a principled way with known optimization techniques.</p>
        <p>Our current prototype builds on the g2o optimization framework [15] and its
use for trajectory optimization [16]. We are able to represent partially ordered
and explicitly timed state trajectories for several robots, on problems involving
navigation, object placement and energy consumption.</p>
        <p>Our current research focus is on the extraction of a minimized unsatisfiable
core in the case where the local optimum results in constraint violations; in order
to enable a good bi-directional integration with the high-level planner. While the
violated constraints provide some information, the local optimum found results
both from the initial assignment and on non-convex constraints that can drive
the search into a particular basin. In practice, witnessing a constraint violation
means that the combination of a set of constraints and of an initial assignment
(i.e. a state trajectory) results in an unfeasible refined plan. Our key challenge is
to efficiently explore the space of possible refinements to find a satisfiable state
trajectory or provide a probabilistic evidence that a set of constraints should be
relaxed in the high-level plan. Such evidence can then be efficiently handled by
our constraint-based engine to prune the search space of alternative high-level
solutions.
13. LaValle, S.M.: Planning Algorithms. Cambridge University Press (2006)
14. Mansouri, M., Pecora, F.: More Knowledge on the Table : Planning with Space
, Time and Resources for Robots. In: International Conference on Robotics and
Automation (ICRA) (2014)
15. Rainer, K., Grisetti, G., Konolige, K.: g2o : A General Framework for Graph
Optimization. In: International Conference on Robotics and Automation (ICRA) (2011)
16. Rösmann, C., Hoffmann, F., Bertram, T.: Integrated online trajectory planning
and optimization in distinctive topologies. Robotics and Autonomous Systems 88
(2017)
17. Scala, E., Ramirez, M., Haslum, P., Thiebaux, S.: Numeric Planning with
Disjunctive Global Constraints via SMT. In: International Conference on Automated
Planning and Scheduling (ICAPS) (2016)
18. Schulman, J., Duan, Y., Ho, J., Lee, A., Awwal, I., Bradlow, H., Pan, J., Patil, S.,
Goldberg, K., Abbeel, P.: Motion Planning with Sequential Convex Optimization
and Convex Collision Checking. International Journal of Robotics Research (IJRR)
(2014)</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Bidot</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karlsson</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lagriffoul</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Saffiotti</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Geometric Backtracking for Combined Task and Path Planning in Robotic Systems</article-title>
          .
          <source>Tech. rep. (</source>
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bit-Monnot</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Temporal and Hierarchical Models for Planning and Acting in Robotics</article-title>
          .
          <source>Ph.D. thesis</source>
          , Université de Toulouse (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Bit-Monnot</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>A Constraint-based Encoding for Domain-Independent Temporal Planning</article-title>
          .
          <source>In: International Conference on Principles and Practice of Constraint Programming (CP)</source>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bryce</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gao</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Musliner</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goldman</surname>
          </string-name>
          , R.:
          <article-title>SMT-based Nonlinear PDDL+ Planning</article-title>
          .
          <source>In: AAAI Conference on Artificial Intelligence</source>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Cashmore</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fox</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Long</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Magazzeni</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>A Compilation of the Full PDDL+ Language into SMT</article-title>
          .
          <source>In: International Conference on Automated Planning and Scheduling (ICAPS)</source>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Coles</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Coles</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fox</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Long</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <string-name>
            <surname>Forward-Chaining</surname>
            <given-names>Partial-Order</given-names>
          </string-name>
          <string-name>
            <surname>Planning</surname>
          </string-name>
          .
          <source>In: International Conference on Automated Planning and Scheduling (ICAPS)</source>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Coles</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Coles</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fox</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Long</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          : COLIN:
          <article-title>Planning with Continuous Linear Numeric Change</article-title>
          .
          <source>Journal of Artificial Intelligence Research (JAIR) 44</source>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Dantam</surname>
            ,
            <given-names>N.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kingston</surname>
            ,
            <given-names>Z.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chaudhuri</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kavraki</surname>
            ,
            <given-names>L.E.</given-names>
          </string-name>
          :
          <article-title>Incremental Task and Motion Planning: A Constraint-Based Approach</article-title>
          .
          <source>In: Robotics: Science and Systems Conference</source>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Garrett</surname>
            ,
            <given-names>C.R.:</given-names>
          </string-name>
          <article-title>FFRob: An Efficient Heuristic for Task and Motion Planning</article-title>
          .
          <source>In: Algorithmic Foundations of Robotics</source>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Laborie</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rogerie</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <article-title>Reasoning with Conditional Time-Intervals</article-title>
          .
          <source>In: International Florida Artificial Intelligence Research Society Conference (FLAIRS)</source>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Laborie</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rogerie</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shaw</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vilím</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>IBM ILOG CP optimizer for scheduling</article-title>
          .
          <source>Constraints</source>
          <volume>23</volume>
          (
          <issue>2</issue>
          ) (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Lagriffoul</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>On Benchmarks for Combined Task and Motion Planning</article-title>
          .
          <source>In: RSS Workshop on Task and Motion Planning</source>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>