ros2_control - humble
Loading...
Searching...
No Matches
ign_ros2_control_plugin.hpp
1// Copyright 2021 Open Source Robotics Foundation, Inc.
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_ROS2_CONTROL__IGN_ROS2_CONTROL_PLUGIN_HPP_
16#define IGN_ROS2_CONTROL__IGN_ROS2_CONTROL_PLUGIN_HPP_
17
18#include <memory>
19
20#include <ignition/gazebo/System.hh>
21
22namespace ign_ros2_control
23{
24// Forward declarations.
25class IgnitionROS2ControlPluginPrivate;
26
28 : public ignition::gazebo::System,
29 public ignition::gazebo::ISystemConfigure,
30 public ignition::gazebo::ISystemPreUpdate,
31 public ignition::gazebo::ISystemPostUpdate
32{
33public:
36
39
40 // Documentation inherited
41 void Configure(
42 const ignition::gazebo::Entity & _entity,
43 const std::shared_ptr<const sdf::Element> & _sdf,
44 ignition::gazebo::EntityComponentManager & _ecm,
45 ignition::gazebo::EventManager & _eventMgr) override;
46
47 // Documentation inherited
48 void PreUpdate(
49 const ignition::gazebo::UpdateInfo & _info,
50 ignition::gazebo::EntityComponentManager & _ecm) override;
51
52 void PostUpdate(
53 const ignition::gazebo::UpdateInfo & _info,
54 const ignition::gazebo::EntityComponentManager & _ecm) override;
55
56private:
58 std::unique_ptr<IgnitionROS2ControlPluginPrivate> dataPtr;
59};
60} // namespace ign_ros2_control
61
62#endif // IGN_ROS2_CONTROL__IGN_ROS2_CONTROL_PLUGIN_HPP_
Definition ign_ros2_control_plugin.hpp:32
IgnitionROS2ControlPlugin()
Constructor.
Definition ign_ros2_control_plugin.cpp:229
~IgnitionROS2ControlPlugin() override
Destructor.
Definition ign_ros2_control_plugin.cpp:235