Skip to main content
QUICK REVIEW

[Paper Review] ROSoClingo: A ROS package for ASP-based robot control

Benjamin Andres, Philipp Obermeier|arXiv (Cornell University)|Jul 28, 2013
Logic, Reasoning, and KnowledgeComputer Science13 references4 citations
TL;DR

ROSoClingo is a ROS package that integrates the reactive ASP solver oClingo into the Robot Operating System, enabling declarative, high-level robot control through dynamic reasoning about actions, goals, and environment changes. It allows robots to generate and adapt task plans in real time, with seamless integration of sensor feedback and action execution via ROS communication channels.

ABSTRACT

Knowledge representation and reasoning capacities are vital to cognitive robotics because they provide higher level cognitive functions for reasoning about actions, environments, goals, perception, etc. Although Answer Set Programming (ASP) is well suited for modelling such functions, there was so far no seamless way to use ASP in a robotic environment. We address this shortcoming and show how a recently developed reactive ASP system can be harnessed to provide appropriate reasoning capacities within a robotic system. To be more precise, we furnish a package integrating the reactive ASP solver oClingo with the popular open-source robotic middleware ROS. The resulting system, ROSoClingo, provides a generic way by which an ASP program can be used to control the behaviour of a robot and to respond to the results of the robot's actions.

Motivation & Objective

  • To bridge the gap between high-level reasoning and low-level robot control by enabling Answer Set Programming (ASP) in robotic systems.
  • To address the lack of reactive capabilities in traditional ASP solvers, which require full re-solving upon new input.
  • To provide a seamless, generic integration of reactive ASP reasoning into the ROS middleware for robotic applications.
  • To support real-time adaptation of robot behavior in response to dynamic environments and changing goals.
  • To reduce development complexity by abstracting low-level integration details between ASP and ROS components.

Proposed method

  • Integrates oClingo, a reactive ASP solver, with ROS to enable incremental, event-driven reasoning in robotic systems.
  • Uses ROS topics for asynchronous communication: input is fed to oClingo via a custom input feeder that transforms requests into ASP input streams.
  • Encapsulates action plans from oClingo’s answer sets into ROS messages published on the out_rosoclingo topic for execution.
  • Receives execution results from ROS components (e.g., move_base) via the in_rosoclingo topic and feeds them back into oClingo using the _return predicate.
  • Employs integrity constraints (e.g., `:- not _action(...).`) to preserve past actions in future plans and avoid plan oscillation.
  • Provides an interface layer for ROS navigation and action libraries (e.g., move_base, pickup, deliver) to map high-level actions to ROS service calls.

Experimental results

Research questions

  • RQ1How can reactive Answer Set Programming be effectively integrated into a real-time robotic middleware like ROS?
  • RQ2Can ASP-based reasoning be used to generate and dynamically adapt robot task plans in response to online sensor feedback and changing goals?
  • RQ3To what extent does the integration of oClingo into ROS reduce the complexity of implementing high-level cognitive control in robots?
  • RQ4How does the system handle plan updates and cancellations in response to runtime changes, such as task cancellation?
  • RQ5Can the proposed framework serve as a generic, reusable component for high-level planning in diverse autonomous robotic systems?

Key findings

  • ROSoClingo successfully enables real-time, reactive planning using ASP by incrementally updating the solver with new input and feedback, avoiding full re-solving.
  • The system dynamically adapts robot behavior in response to task cancellations: upon receiving a `cancel(1)` request, oClingo re-plans and generates a new, minimal action sequence.
  • The robot correctly transitions through states—navigation to office3, waiting at office3 after cancellation, and then executing a new delivery plan to office4—demonstrating robust plan adaptation.
  • The integration abstracts low-level ROS communication details, allowing developers to focus on high-level logic in ASP, with action execution handled automatically via message passing.
  • The system supports end-to-end declarative control: goals are specified in ASP, plans are generated by oClingo, and actions are executed via ROS, all with minimal custom code.
  • The case study with TurtleBot in Gazebo confirms the framework’s viability for real-world robotic applications, including navigation, object pickup, and delivery in a simulated office environment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.