Main Page
Namespaces
Classes
Files
File List
include
cob_gazebo_ros_control
hwi_switch_gazebo_ros_control_plugin.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
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
18
// CobGazeboRosControlPlugin
19
#include <
gazebo_ros_control/gazebo_ros_control_plugin.h
>
20
#include <
cob_gazebo_ros_control/hwi_switch_robot_hw_sim.h
>
21
22
23
namespace
cob_gazebo_ros_control
24
{
25
26
class
HWISwitchGazeboRosControlPlugin
:
public
gazebo_ros_control::GazeboRosControlPlugin
27
{
28
public
:
29
30
// Overloaded Gazebo entry point
31
virtual
void
Load
(gazebo::physics::ModelPtr parent, sdf::ElementPtr sdf);
32
33
// Called by the world update start event
34
void
Update
();
35
36
protected
:
37
void
eStopCB
(
const
std_msgs::BoolConstPtr& e_stop_active);
38
void
stateValidCB
(
const
std_msgs::BoolConstPtr& state_valid);
39
40
bool
enable_joint_filtering_
;
41
std::string
filterJointsParam_
;
42
43
boost::shared_ptr<cob_gazebo_ros_control::HWISwitchRobotHWSim>
hwi_switch_robot_hw_sim_
;
44
45
bool
state_valid_
;
46
ros::Subscriber
state_valid_sub_
;
47
};
48
49
50
}
cob_gazebo_ros_control::HWISwitchGazeboRosControlPlugin::Load
virtual void Load(gazebo::physics::ModelPtr parent, sdf::ElementPtr sdf)
Definition:
hwi_switch_gazebo_ros_control_plugin.cpp:25
cob_gazebo_ros_control::HWISwitchGazeboRosControlPlugin::enable_joint_filtering_
bool enable_joint_filtering_
Definition:
hwi_switch_gazebo_ros_control_plugin.h:40
gazebo_ros_control::GazeboRosControlPlugin
boost::shared_ptr
cob_gazebo_ros_control::HWISwitchGazeboRosControlPlugin::Update
void Update()
Definition:
hwi_switch_gazebo_ros_control_plugin.cpp:211
cob_gazebo_ros_control::HWISwitchGazeboRosControlPlugin::filterJointsParam_
std::string filterJointsParam_
Definition:
hwi_switch_gazebo_ros_control_plugin.h:41
ros::Subscriber
cob_gazebo_ros_control::HWISwitchGazeboRosControlPlugin::state_valid_sub_
ros::Subscriber state_valid_sub_
Definition:
hwi_switch_gazebo_ros_control_plugin.h:46
gazebo_ros_control_plugin.h
cob_gazebo_ros_control::HWISwitchGazeboRosControlPlugin::hwi_switch_robot_hw_sim_
boost::shared_ptr< cob_gazebo_ros_control::HWISwitchRobotHWSim > hwi_switch_robot_hw_sim_
Definition:
hwi_switch_gazebo_ros_control_plugin.h:43
cob_gazebo_ros_control
Definition:
hwi_switch_gazebo_ros_control_plugin.h:23
hwi_switch_robot_hw_sim.h
cob_gazebo_ros_control::HWISwitchGazeboRosControlPlugin
Definition:
hwi_switch_gazebo_ros_control_plugin.h:26
cob_gazebo_ros_control::HWISwitchGazeboRosControlPlugin::stateValidCB
void stateValidCB(const std_msgs::BoolConstPtr &state_valid)
Definition:
hwi_switch_gazebo_ros_control_plugin.cpp:269
cob_gazebo_ros_control::HWISwitchGazeboRosControlPlugin::state_valid_
bool state_valid_
Definition:
hwi_switch_gazebo_ros_control_plugin.h:45
cob_gazebo_ros_control::HWISwitchGazeboRosControlPlugin::eStopCB
void eStopCB(const std_msgs::BoolConstPtr &e_stop_active)
Definition:
hwi_switch_gazebo_ros_control_plugin.cpp:263
cob_gazebo_ros_control
Author(s): Felix Messmer
autogenerated on Mon Sep 28 2020 03:19:19