gazebo_ros_wheel_slip.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef GAZEBO_ROS_WHEEL_SLIP_H
18 #define GAZEBO_ROS_WHEEL_SLIP_H
19 
20 // Custom Callback Queue
21 #include <ros/callback_queue.h>
22 #include <ros/subscribe_options.h>
23 
24 #include <ros/ros.h>
25 #include <std_msgs/Bool.h>
26 
27 // dynamic reconfigure stuff
28 #include <gazebo_plugins/WheelSlipConfig.h>
29 #include <dynamic_reconfigure/server.h>
30 
31 #include <gazebo/plugins/WheelSlipPlugin.hh>
32 
33 namespace gazebo
34 {
49 class GazeboRosWheelSlip : public WheelSlipPlugin
50 {
52  public: GazeboRosWheelSlip();
53 
55  public: virtual ~GazeboRosWheelSlip();
56 
58  public: virtual void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf);
59 
61  private: void QueueThread();
62 
63  // Allow dynamic reconfiguration of wheel slip params
64  private: void configCallback(
65  gazebo_plugins::WheelSlipConfig &config,
66  uint32_t level);
67 
70 
72  private: dynamic_reconfigure::Server<gazebo_plugins::WheelSlipConfig>
74 
76  private: std::string robotNamespace_;
78  private: boost::thread callbackQueueThread_;
79 };
80 }
81 #endif
gazebo::GazeboRosWheelSlip::~GazeboRosWheelSlip
virtual ~GazeboRosWheelSlip()
Destructor.
Definition: gazebo_ros_wheel_slip.cpp:35
gazebo::GazeboRosWheelSlip::queue_
ros::CallbackQueue queue_
Definition: gazebo_ros_wheel_slip.h:77
gazebo::GazeboRosWheelSlip::QueueThread
void QueueThread()
Custom callback queue thread.
Definition: gazebo_ros_wheel_slip.cpp:112
gazebo
ros.h
gazebo::GazeboRosWheelSlip::robotNamespace_
std::string robotNamespace_
for setting ROS name space
Definition: gazebo_ros_wheel_slip.h:76
gazebo::GazeboRosWheelSlip::Load
virtual void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)
Load the plugin.
Definition: gazebo_ros_wheel_slip.cpp:69
ros::CallbackQueue
gazebo::GazeboRosWheelSlip::rosnode_
ros::NodeHandle * rosnode_
pointer to ros node
Definition: gazebo_ros_wheel_slip.h:69
gazebo::GazeboRosWheelSlip::GazeboRosWheelSlip
GazeboRosWheelSlip()
Constructor.
Definition: gazebo_ros_wheel_slip.cpp:30
gazebo::GazeboRosWheelSlip::dyn_srv_
dynamic_reconfigure::Server< gazebo_plugins::WheelSlipConfig > * dyn_srv_
Dynamic reconfigure server.
Definition: gazebo_ros_wheel_slip.h:73
callback_queue.h
gazebo::GazeboRosWheelSlip::configCallback
void configCallback(gazebo_plugins::WheelSlipConfig &config, uint32_t level)
Definition: gazebo_ros_wheel_slip.cpp:48
gazebo::GazeboRosWheelSlip
See the Gazebo documentation about the WheelSlipPlugin. This ROS wrapper exposes two parameters via d...
Definition: gazebo_ros_wheel_slip.h:49
gazebo::GazeboRosWheelSlip::callbackQueueThread_
boost::thread callbackQueueThread_
Definition: gazebo_ros_wheel_slip.h:78
subscribe_options.h
ros::NodeHandle


gazebo_plugins
Author(s): John Hsu
autogenerated on Thu Sep 5 2024 02:49:55