.. _program_listing_file__tmp_ws_src_ros2_planning_system_plansys2_domain_expert_include_plansys2_domain_expert_DomainExpertInterface.hpp: Program Listing for File DomainExpertInterface.hpp ================================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/ros2_planning_system/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // Copyright 2019 Intelligent Robotics Lab // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef PLANSYS2_DOMAIN_EXPERT__DOMAINEXPERTINTERFACE_HPP_ #define PLANSYS2_DOMAIN_EXPERT__DOMAINEXPERTINTERFACE_HPP_ #include #include #include #include "plansys2_msgs/msg/action.hpp" #include "plansys2_msgs/msg/durative_action.hpp" #include "plansys2_msgs/msg/node.hpp" #include "plansys2_core/Types.hpp" namespace plansys2 { class DomainExpertInterface { public: DomainExpertInterface() {} virtual std::string getName() = 0; virtual std::vector getTypes() = 0; virtual std::vector getConstants(const std::string & type) = 0; virtual std::vector getPredicates() = 0; virtual std::optional getPredicate(const std::string & predicate) = 0; virtual std::vector getFunctions() = 0; virtual std::optional getFunction(const std::string & function) = 0; virtual std::vector getActions() = 0; virtual plansys2_msgs::msg::Action::SharedPtr getAction( const std::string & action, const std::vector & params) = 0; virtual std::vector getDurativeActions() = 0; virtual plansys2_msgs::msg::DurativeAction::SharedPtr getDurativeAction( const std::string & durative_action, const std::vector & params) = 0; virtual std::string getDomain() = 0; }; } // namespace plansys2 #endif // PLANSYS2_DOMAIN_EXPERT__DOMAINEXPERTINTERFACE_HPP_