ign_ros_control_plugin.hpp
Go to the documentation of this file.
1 // Copyright 2022 The ros_control team.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef IGN_ROS_CONTROL__IGN_ROS_CONTROL_PLUGIN_HPP_
16 #define IGN_ROS_CONTROL__IGN_ROS_CONTROL_PLUGIN_HPP_
17 
18 #include <ignition/gazebo/System.hh>
19 
20 #include <memory>
21 
22 namespace ign_ros_control
23 {
24 // Forward declarations.
26 
28  public ignition::gazebo::System,
29  public ignition::gazebo::ISystemConfigure,
30  public ignition::gazebo::ISystemPreUpdate,
31  public ignition::gazebo::ISystemPostUpdate
32 {
33 public:
34 
37 
39  ~IgnitionROSControlPlugin() override;
40 
41  // Documentation inherited
42  void Configure(
43  const ignition::gazebo::Entity & _entity,
44  const std::shared_ptr<const sdf::Element> & _sdf,
45  ignition::gazebo::EntityComponentManager & _ecm,
46  ignition::gazebo::EventManager & _eventMgr) override;
47 
48  // Documentation inherited
49  void PreUpdate(
50  const ignition::gazebo::UpdateInfo & _info,
51  ignition::gazebo::EntityComponentManager & _ecm) override;
52 
53  // Documentation inherited
54  void PostUpdate(
55  const ignition::gazebo::UpdateInfo & _info,
56  const ignition::gazebo::EntityComponentManager & _ecm) override;
57 
58 private:
60  std::unique_ptr<IgnitionROSControlPluginPrivate> dataPtr;
61 };
62 } // namespace ign_ros_control
63 
64 #endif // IGN_ROS_CONTROL__IGN_ROS_CONTROL_PLUGIN_HPP_
ign_ros_control::IgnitionROSControlPlugin::~IgnitionROSControlPlugin
~IgnitionROSControlPlugin() override
Destructor.
Definition: ign_ros_control_plugin.cpp:226
ign_ros_control::IgnitionROSControlPlugin::PostUpdate
void PostUpdate(const ignition::gazebo::UpdateInfo &_info, const ignition::gazebo::EntityComponentManager &_ecm) override
Definition: ign_ros_control_plugin.cpp:388
ign_ros_control
Definition: ign_ros_control_plugin.hpp:22
ign_ros_control::IgnitionROSControlPlugin::IgnitionROSControlPlugin
IgnitionROSControlPlugin()
Constructor.
Definition: ign_ros_control_plugin.cpp:220
ign_ros_control::IgnitionROSControlPlugin::Configure
void Configure(const ignition::gazebo::Entity &_entity, const std::shared_ptr< const sdf::Element > &_sdf, ignition::gazebo::EntityComponentManager &_ecm, ignition::gazebo::EventManager &_eventMgr) override
Definition: ign_ros_control_plugin.cpp:231
ign_ros_control::IgnitionROSControlPlugin::PreUpdate
void PreUpdate(const ignition::gazebo::UpdateInfo &_info, ignition::gazebo::EntityComponentManager &_ecm) override
Definition: ign_ros_control_plugin.cpp:358
ign_ros_control::IgnitionROSControlPlugin::dataPtr
std::unique_ptr< IgnitionROSControlPluginPrivate > dataPtr
Private data pointer.
Definition: ign_ros_control_plugin.hpp:60
ign_ros_control::IgnitionROSControlPluginPrivate
Definition: ign_ros_control_plugin.cpp:46
ign_ros_control::IgnitionROSControlPlugin
Definition: ign_ros_control_plugin.hpp:27


ign_ros_control
Author(s): Gennaro Raiola
autogenerated on Sun Aug 14 2022 02:23:53