Skip to content

Commit 4a0bd0e

Browse files
committed
modify: spellcheck
Signed-off-by: TetsuKawa <kawaguchitnon@icloud.com>
1 parent 53e43a2 commit 4a0bd0e

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

system/leader_election_converter/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ The log converter receive udp packets into a structure called `ElectionCommuni
3939

4040
| Interface Type | Interface Name | Data Type | Description |
4141
| -------------- | -------------------------------------- | --------------------------------------------- | ------------------------------- |
42-
| udp receiver | none | `struct ElectionCommunication` | messages amoung election nodes. |
42+
| udp receiver | none | `struct ElectionCommunication` | messages among election nodes. |
4343
| udp receiver | none | `struct ElectionStatus` | Leader Election status. |
44-
| publisher | `/system/election/communication` | `tier4_system_msgs/msg/ElectionCommunication` | messages amoung election nodes. |
44+
| publisher | `/system/election/communication` | `tier4_system_msgs/msg/ElectionCommunication` | messages among election nodes. |
4545
| publisher | `/system/election/status` | `tier4_system_msgs/msg/MrmState` | Leader Election status. |
46-
| publisher | `/system/fail_safe/over_all/mrm_state` | `autoware_adapi_v1_msgs/msg/mrm_state` | System-wode MRM status. |
46+
| publisher | `/system/fail_safe/over_all/mrm_state` | `autoware_adapi_v1_msgs/msg/mrm_state` | System-wide MRM status. |
4747

4848
## Parameters
4949

system/leader_election_converter/launch/leader_election_converter.launch.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<launch>
2-
<arg name="param_file" default="$(find-pkg-share leader_election_converter)/config/leader_electioin_converter.param.yaml"/>
2+
<arg name="param_file" default="$(find-pkg-share leader_election_converter)/config/leader_election_converter.param.yaml"/>
33
<arg name="input_control_mode" default="/vehicle/status/control_mode"/>
44
<arg name="input_operation_mode_availability" default="/system/operation_mode/availability"/>
55
<arg name="input_mrm_state" default="/system/fail_safe/mrm_state"/>

system/leader_election_converter/schema/leader_election_converter.schema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"properties": {
99
"availability_dest_ip": {
1010
"type": "string",
11-
"description": "IP address of the destination of avaialability",
11+
"description": "IP address of the destination of availability",
1212
"default": "127.0.0.1"
1313
},
1414
"availability_dest_port": {
1515
"type": "string",
16-
"description": "Port of the destination of avaialability",
16+
"description": "Port of the destination of availability",
1717
"default": "9000"
1818
},
1919
"mrm_state_dest_ip": {

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

+11-11
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ namespace leader_election_converter
2424
{
2525

2626
LogConverter::LogConverter(rclcpp::Node * node)
27-
: node_(node), is_election_comunication_running_(true), is_election_status_running_(true)
27+
: node_(node), is_election_communication_running_(true), is_election_status_running_(true)
2828
{
2929
}
3030

3131
LogConverter::~LogConverter()
3232
{
33-
is_election_comunication_running_ = false;
34-
udp_election_comunication_receiver_->~UdpReceiver();
33+
is_election_communication_running_ = false;
34+
udp_election_communication_receiver_->~UdpReceiver();
3535
is_election_status_running_ = false;
3636
udp_election_status_receiver_->~UdpReceiver();
37-
if (udp_election_comunication_thread_.joinable()) {
38-
udp_election_comunication_thread_.join();
37+
if (udp_election_communication_thread_.joinable()) {
38+
udp_election_communication_thread_.join();
3939
}
4040
if (udp_election_status_thread_.joinable()) {
4141
udp_election_status_thread_.join();
@@ -45,19 +45,19 @@ LogConverter::~LogConverter()
4545
void LogConverter::setUdpElectionCommunicatioinReceiver(
4646
const std::string & src_ip, const std::string & src_port)
4747
{
48-
udp_election_comunication_thread_ =
48+
udp_election_communication_thread_ =
4949
std::thread(&LogConverter::startUdpElectionCommunicationReceiver, this, src_ip, src_port);
5050
}
5151

5252
void LogConverter::startUdpElectionCommunicationReceiver(
5353
const std::string & src_ip, const std::string & src_port)
5454
{
5555
try {
56-
udp_election_comunication_receiver_ = std::make_unique<UdpReceiver<ElectionCommunication>>(
56+
udp_election_communication_receiver_ = std::make_unique<UdpReceiver<ElectionCommunication>>(
5757
src_ip, src_port,
5858
std::bind(&LogConverter::convertElectionCommunicationToTopic, this, std::placeholders::_1));
59-
while (is_election_comunication_running_) {
60-
udp_election_comunication_receiver_->receive();
59+
while (is_election_communication_running_) {
60+
udp_election_communication_receiver_->receive();
6161
}
6262
} catch (const std::exception & e) {
6363
RCLCPP_ERROR(node_->get_logger(), "Error in UDP receiver thread: %s", e.what());
@@ -88,7 +88,7 @@ void LogConverter::startUdpElectionStatusReceiver(
8888

8989
void LogConverter::setPublisher()
9090
{
91-
pub_election_comunication_ =
91+
pub_election_communication_ =
9292
node_->create_publisher<tier4_system_msgs::msg::ElectionCommunication>(
9393
"~/output/election_communication", rclcpp::QoS{1});
9494
pub_election_status_ = node_->create_publisher<tier4_system_msgs::msg::ElectionStatus>(
@@ -107,7 +107,7 @@ void LogConverter::convertElectionCommunicationToTopic(const ElectionCommunicati
107107
msg.link = (node_msg.msg >> 24) & 0xFF;
108108
msg.heartbeat = (node_msg.msg >> 56) & 0x0F;
109109
msg.checksum = (node_msg.msg >> 60) & 0x0F;
110-
pub_election_comunication_->publish(msg);
110+
pub_election_communication_->publish(msg);
111111
}
112112

113113
void LogConverter::convertElectionStatusToTopic(const ElectionStatus & status)

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class LogConverter
6464
explicit LogConverter(rclcpp::Node * node);
6565
~LogConverter();
6666

67-
void setUdpElectionCommunicatioinReceiver(
67+
void setUdpElectionCommunicationReceiver(
6868
const std::string & src_ip, const std::string & src_port);
6969
void setUdpElectionStatusReceiver(const std::string & src_ip, const std::string & src_port);
7070
void setPublisher();
@@ -77,16 +77,16 @@ class LogConverter
7777
void convertElectionStatusToTopic(const ElectionStatus & status);
7878

7979
rclcpp::Node * node_;
80-
std::unique_ptr<UdpReceiver<ElectionCommunication>> udp_election_comunication_receiver_;
80+
std::unique_ptr<UdpReceiver<ElectionCommunication>> udp_election_communication_receiver_;
8181
std::unique_ptr<UdpReceiver<ElectionStatus>> udp_election_status_receiver_;
8282
rclcpp::Publisher<tier4_system_msgs::msg::ElectionCommunication>::SharedPtr
83-
pub_election_comunication_;
83+
pub_election_communication_;
8484
rclcpp::Publisher<tier4_system_msgs::msg::ElectionStatus>::SharedPtr pub_election_status_;
8585
rclcpp::Publisher<autoware_adapi_v1_msgs::msg::MrmState>::SharedPtr pub_over_all_mrm_state_;
8686

87-
std::thread udp_election_comunication_thread_;
87+
std::thread udp_election_communication_thread_;
8888
std::thread udp_election_status_thread_;
89-
std::atomic<bool> is_election_comunication_running_;
89+
std::atomic<bool> is_election_communication_running_;
9090
std::atomic<bool> is_election_status_running_;
9191
};
9292

system/leader_election_converter/src/node/leader_election_converter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ LeaderElectionConverter::LeaderElectionConverter(const rclcpp::NodeOptions & nod
5151

5252
// convert udp packets of election info to topics
5353
log_converter_.setPublisher();
54-
log_converter_.setUdpElectionCommunicatioinReceiver(
54+
log_converter_.setUdpElectionCommunicationReceiver(
5555
election_communication_src_ip_, election_communication_src_port_);
5656
log_converter_.setUdpElectionStatusReceiver(election_status_src_ip_, election_status_src_port_);
5757
}

0 commit comments

Comments
 (0)