Skip to content

Commit cf8b3b5

Browse files
committed
Satisfy ament tools.
1 parent 6c5ecef commit cf8b3b5

File tree

3 files changed

+322
-322
lines changed

3 files changed

+322
-322
lines changed
Lines changed: 51 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
/*
2-
* Copyright 2023 Open Source Robotics Foundation, Inc.
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-
*/
1+
// Copyright 2023 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.
1714

1815
//----------------------------------------------------------------------
1916
/*!\file
@@ -24,8 +21,8 @@
2421
*/
2522
//----------------------------------------------------------------------
2623

27-
#ifndef IGNITION_GAZEBO_SYSTEMS_MIMICJOINTSYSTEM_HH_
28-
#define IGNITION_GAZEBO_SYSTEMS_MIMICJOINTSYSTEM_HH_
24+
#ifndef IGN_ROS2_CONTROL__MIMICJOINTSYSTEM_HH_
25+
#define IGN_ROS2_CONTROL__MIMICJOINTSYSTEM_HH_
2926

3027
//! [header]
3128
#include <memory>
@@ -57,37 +54,49 @@ namespace ign_ros2_control
5754
class MimicJointSystemPrivate;
5855

5956
class MimicJointSystem:
60-
// This class is a system.
61-
public ignition::gazebo::System,
62-
public ignition::gazebo::ISystemConfigure,
63-
// This class also implements the ISystemPreUpdate, ISystemUpdate,
64-
// and ISystemPostUpdate interfaces.
65-
public ignition::gazebo::ISystemPreUpdate,
66-
public ignition::gazebo::ISystemUpdate,
67-
public ignition::gazebo::ISystemPostUpdate
57+
// This class is a system.
58+
public ignition::gazebo::System,
59+
public ignition::gazebo::ISystemConfigure,
60+
// This class also implements the ISystemPreUpdate, ISystemUpdate,
61+
// and ISystemPostUpdate interfaces.
62+
public ignition::gazebo::ISystemPreUpdate,
63+
public ignition::gazebo::ISystemUpdate,
64+
public ignition::gazebo::ISystemPostUpdate
6865
{
69-
public: MimicJointSystem();
66+
public:
67+
MimicJointSystem();
7068

7169
// Documentation inherited
72-
public: void Configure(const ignition::gazebo::Entity &_entity,
73-
const std::shared_ptr<const sdf::Element> &_sdf,
74-
ignition::gazebo::EntityComponentManager &_ecm,
75-
ignition::gazebo::EventManager &_eventMgr) override;
7670

77-
public: void PreUpdate(const ignition::gazebo::UpdateInfo &_info,
78-
ignition::gazebo::EntityComponentManager &_ecm) override;
71+
public:
72+
void Configure(
73+
const ignition::gazebo::Entity & _entity,
74+
const std::shared_ptr < const sdf::Element > & _sdf,
75+
ignition::gazebo::EntityComponentManager & _ecm,
76+
ignition::gazebo::EventManager & _eventMgr) override;
77+
78+
public:
79+
void PreUpdate(
80+
const ignition::gazebo::UpdateInfo & _info,
81+
ignition::gazebo::EntityComponentManager & _ecgm) override;
82+
83+
public:
84+
void Update(
85+
const ignition::gazebo::UpdateInfo & _info,
86+
ignition::gazebo::EntityComponentManager & _ecm) override;
7987

80-
public: void Update(const ignition::gazebo::UpdateInfo &_info,
81-
ignition::gazebo::EntityComponentManager &_ecm) override;
88+
public:
89+
void PostUpdate(
90+
const ignition::gazebo::UpdateInfo & _info,
91+
const ignition::gazebo::EntityComponentManager & _ecm) override;
8292

83-
public: void PostUpdate(const ignition::gazebo::UpdateInfo &_info,
84-
const ignition::gazebo::EntityComponentManager &_ecm) override;
93+
private:
94+
/// \brief Private data pointer
8595

86-
private:
87-
/// \brief Private data pointer
88-
private: std::unique_ptr<MimicJointSystemPrivate> dataPtr;
96+
private:
97+
std::unique_ptr < MimicJointSystemPrivate > dataPtr;
8998
};
90-
}
99+
} // namespace ign_ros2_control
91100
//! [header]
92101

93-
#endif
102+
#endif // IGN_ROS2_CONTROL__MIMICJOINTSYSTEM_HH_

0 commit comments

Comments
 (0)