Skip to content

Commit

Permalink
fix: unusual word
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <[email protected]>
  • Loading branch information
satoshi-ota committed Dec 27, 2024
1 parent fe70a04 commit 812f133
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mock/cpp_mock_scenarios/src/respawn_ego/respawn_ego.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class RespawnEgoScenario : public cpp_mock_scenarios::CppScenarioNode
goal_msg.pose = static_cast<geometry_msgs::msg::Pose>(goal_pose);
api_.respawn("ego", message, goal_msg);
})},
has_respawned{false}
has_done_respawn{false}
{
start();
}
Expand All @@ -56,7 +56,7 @@ class RespawnEgoScenario : public cpp_mock_scenarios::CppScenarioNode
stop(cpp_mock_scenarios::Result::SUCCESS);
}

if (api_.getCurrentTime() >= 10 && !has_respawned) {
if (api_.getCurrentTime() >= 10 && !has_done_respawn) {
geometry_msgs::msg::PoseWithCovarianceStamped ego_pose;
ego_pose.header.frame_id = "map";
ego_pose.pose.pose = static_cast<geometry_msgs::msg::Pose>(
Expand All @@ -70,7 +70,7 @@ class RespawnEgoScenario : public cpp_mock_scenarios::CppScenarioNode
34564, 10.0, 0.0, api_.getHdmapUtils()));
api_.respawn("ego", ego_pose, goal_pose);

has_respawned = true;
has_done_respawn = true;
}
}

Expand All @@ -88,7 +88,7 @@ class RespawnEgoScenario : public cpp_mock_scenarios::CppScenarioNode
const rclcpp::Subscription<geometry_msgs::msg::PoseWithCovarianceStamped>::SharedPtr
new_position_subscriber;

bool has_respawned;
bool has_done_respawn;
};
} // namespace cpp_mock_scenarios

Expand Down

0 comments on commit 812f133

Please sign in to comment.