Skip to content

Commit 8cf97b3

Browse files
committed
modify
Signed-off-by: TetsuKawa <kawaguchitnon@icloud.com>
1 parent 80930c4 commit 8cf97b3

10 files changed

+23
-5
lines changed

system/leader_election_converter/src/common/converter/availability_converter.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include <string>
16+
#include <memory>
1517

1618
#include "rclcpp/rclcpp.hpp"
1719
#include "availability_converter.hpp"

system/leader_election_converter/src/common/converter/availability_converter.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#include <tier4_system_msgs/msg/operation_mode_availability.hpp>
2020

2121
#include <rclcpp/rclcpp.hpp>
22+
#include <string>
23+
#include <memory>
2224

2325
#include "udp_sender.hpp"
2426

@@ -41,10 +43,8 @@ struct Availability
4143

4244
class AvailabilityConverter
4345
{
44-
4546
public:
46-
AvailabilityConverter(rclcpp::Node * node);
47-
~AvailabilityConverter() = default;
47+
explicit AvailabilityConverter(rclcpp::Node * node);
4848

4949
void setUdpSender(const std::string & dest_ip, const std::string & dest_port);
5050
void setSubscriber();

system/leader_election_converter/src/common/converter/log_converter.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include <string>
16+
#include <memory>
17+
1518
#include "rclcpp/rclcpp.hpp"
1619
#include "log_converter.hpp"
1720

system/leader_election_converter/src/common/converter/log_converter.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#include <rclcpp/rclcpp.hpp>
2424
#include <thread>
2525
#include <atomic>
26+
#include <memory>
27+
#include <string>
2628

2729
#include "udp_sender.hpp"
2830
#include "udp_receiver.hpp"
@@ -56,7 +58,7 @@ typedef struct ElectionStatus
5658
class LogConverter
5759
{
5860
public:
59-
LogConverter(rclcpp::Node * node);
61+
explicit LogConverter(rclcpp::Node * node);
6062
~LogConverter();
6163

6264
void setUdpElectionCommunicatioinReceiver(const std::string & src_ip, const std::string & src_port);

system/leader_election_converter/src/common/converter/mrm_converter.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include <string>
16+
#include <memory>
17+
1518
#include "rclcpp/rclcpp.hpp"
1619
#include "mrm_converter.hpp"
1720

system/leader_election_converter/src/common/converter/mrm_converter.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include <rclcpp/rclcpp.hpp>
2222
#include <thread>
2323
#include <atomic>
24+
#include <memory>
25+
#include <string>
2426

2527
#include "udp_sender.hpp"
2628
#include "udp_receiver.hpp"
@@ -43,7 +45,7 @@ typedef struct MrmRequest
4345
class MrmConverter
4446
{
4547
public:
46-
MrmConverter(rclcpp::Node * node);
48+
explicit MrmConverter(rclcpp::Node * node);
4749
~MrmConverter();
4850

4951
void setUdpSender(const std::string & dest_ip, const std::string & dest_port);

system/leader_election_converter/src/common/converter/udp_receiver.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <functional>
2727
#include <fcntl.h>
2828
#include <errno.h>
29+
#include <string>
2930

3031

3132
namespace leader_election_converter

system/leader_election_converter/src/common/converter/udp_sender.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <netdb.h>
2323
#include <stdexcept>
2424
#include <unistd.h>
25+
#include <string>
2526

2627

2728
namespace leader_election_converter

system/leader_election_converter/src/node/leader_election_converter.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include <string>
16+
1517
#include "leader_election_converter.hpp"
1618

1719
namespace leader_election_converter

system/leader_election_converter/src/node/leader_election_converter.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
#include <rclcpp/rclcpp.hpp>
1919
#include <memory>
20+
#include <string>
21+
2022
#include "availability_converter.hpp"
2123
#include "mrm_converter.hpp"
2224
#include "log_converter.hpp"

0 commit comments

Comments
 (0)