ROSProximityRayPlugin.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  * Desc: ROS wrapper for Proximity Ray Plugin
00019  * Author: Deanna Hood
00020  * Date: 18 July 2016
00021  */
00022 
00023 #ifndef _ROS_PROXIMITY_RAY_PLUGIN_HH_
00024 #define _ROS_PROXIMITY_RAY_PLUGIN_HH_
00025 
00026 // Gazebo
00027 #include "ProximityRayPlugin.hh"
00028 #include <gazebo/physics/physics.hh>
00029 #include <gazebo/common/Events.hh>
00030 
00031 // ROS
00032 #include <ros/ros.h>
00033 #include <osrf_gear/Proximity.h>
00034 
00035 namespace gazebo
00036 {
00038   class ROSProximityRayPlugin : public ProximityRayPlugin
00039   {
00041     public: ROSProximityRayPlugin();
00042 
00044     public: virtual ~ROSProximityRayPlugin();
00045 
00048     public: void Load( sensors::SensorPtr _parent, sdf::ElementPtr _sdf );
00049 
00051     public: virtual void OnNewLaserScans();
00052 
00054     protected: event::ConnectionPtr newLaserScansConnection;
00055 
00057     protected: ros::NodeHandle* rosnode;
00058 
00060     protected: ros::Publisher statePub;
00061 
00063     protected: ros::Publisher stateChangePub;
00064 
00066     protected: osrf_gear::Proximity state_msg;
00067 
00069     protected: std::string robotNamespace;
00070 
00072     protected: std::string frameId;
00073 
00074   };
00075 }
00076 
00077 #endif
00078 


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