Skip to content

Commit

Permalink
remove double canonicalization
Browse files Browse the repository at this point in the history
  • Loading branch information
robomic committed Jan 28, 2025
1 parent 26051f3 commit ed0dcc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions simulation/traffic_simulator/src/entity/entity_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,7 @@ auto EntityBase::setStatus(
const LaneletPose & lanelet_pose, const traffic_simulator_msgs::msg::ActionStatus & action_status)
-> void
{
if (const auto canonicalized_lanelet_pose =
toCanonicalizedLaneletPose(pose::canonicalize(lanelet_pose));
if (const auto canonicalized_lanelet_pose = toCanonicalizedLaneletPose(lanelet_pose);
canonicalized_lanelet_pose.has_value()) {
setStatus(canonicalized_lanelet_pose.value(), action_status);
} else {
Expand Down

0 comments on commit ed0dcc2

Please sign in to comment.