/* * Copyright (C) 2017 Open Source Robotics Foundation * * 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 GAZEBO_PLUGINS_TOUCHPLUGIN_HH_ #define GAZEBO_PLUGINS_TOUCHPLUGIN_HH_ #include #include #include #include #include #include #include namespace gazebo { /// \brief Plugin which checks if this model has touched some specific target /// for a given time continuously and exclusively. After the touch is /// completed, the plugin is disabled. It can be re-enabled through a Gazebo /// transport topic. /// /// It requires that contact sensors be placed in at least one link on this /// model. /// /// Parameters: /// /// Name of contact sensor attached to one of this model's links. /// There can be multiple sensor elements in case many links are /// checked. /// /// Scoped name of collision which we want to be touching. This can /// be a substring of the desired collision name so we match more /// than one collision. For example, using the name of a model will /// match all its collisions. /// ///