ROSAriacTaskManagerPlugin.hh
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2016 Open Source Robotics Foundation
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  *
00016 */
00017 
00018 #ifndef GAZEBO_ROS_ARIAC_TASK_MANAGER_PLUGIN_HH_
00019 #define GAZEBO_ROS_ARIAC_TASK_MANAGER_PLUGIN_HH_
00020 
00021 #include <memory>
00022 #include <gazebo/common/Plugin.hh>
00023 #include <gazebo/physics/PhysicsTypes.hh>
00024 #include <osrf_gear/SubmitTray.h>
00025 #include <sdf/sdf.hh>
00026 #include <std_msgs/String.h>
00027 #include <std_srvs/Trigger.h>
00028 
00029 namespace gazebo
00030 {
00031   // Forward declare private data class
00032   class ROSAriacTaskManagerPluginPrivate;
00033 
00109   class GAZEBO_VISIBLE ROSAriacTaskManagerPlugin : public WorldPlugin
00110   {
00112     public: ROSAriacTaskManagerPlugin();
00113 
00115     public: virtual ~ROSAriacTaskManagerPlugin();
00116 
00117     // Documentation inherited.
00118     public: virtual void Load(physics::WorldPtr _world, sdf::ElementPtr _sdf);
00119 
00121     protected: void OnUpdate();
00122 
00124     protected: void ProcessGoalsToAnnounce();
00125 
00127     protected: void ControlConveyorBelt(double velocity);
00128 
00130     protected: void PopulateConveyorBelt();
00131 
00133     public: bool HandleStartService(
00134       std_srvs::Trigger::Request & req, std_srvs::Trigger::Response & res);
00135 
00137     public: bool HandleSubmitTrayService(
00138       osrf_gear::SubmitTray::Request & req, osrf_gear::SubmitTray::Response & res);
00139 
00141     protected: void AssignGoal(const ariac::Goal & goal);
00142 
00144     protected: void StopCurrentGoal();
00145 
00147     private: std::unique_ptr<ROSAriacTaskManagerPluginPrivate> dataPtr;
00148   };
00149 }
00150 #endif


osrf_gear
Author(s):
autogenerated on Mon Sep 5 2016 03:41:33