Skip to content

Commit

Permalink
Remove member function FieldOperatorApplication::getAutowareStateName
Browse files Browse the repository at this point in the history
Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Dec 24, 2024
1 parent 223ce5d commit 4378dbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct FieldOperatorApplication : public rclcpp::Node,

bool initialize_was_called = false;

std::string autoware_state;
std::string autoware_state = "LAUNCHING";

std::string minimum_risk_maneuver_state;

Expand Down Expand Up @@ -151,8 +151,6 @@ struct FieldOperatorApplication : public rclcpp::Node,

auto clearRoute() -> void;

auto getAutowareStateName() const { return autoware_state; }

auto getMinimumRiskManeuverBehaviorName() const { return minimum_risk_maneuver_behavior; }

auto getMinimumRiskManeuverStateName() const { return minimum_risk_maneuver_state; }
Expand Down
3 changes: 1 addition & 2 deletions simulation/traffic_simulator/src/entity/ego_entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ auto EgoEntity::asFieldOperatorApplication() -> concealer::FieldOperatorApplicat

auto EgoEntity::getCurrentAction() const -> std::string
{
const auto state = getAutowareStateName();
return state.empty() ? "Launching" : state;
return autoware_state;
}

auto EgoEntity::getBehaviorParameter() const -> traffic_simulator_msgs::msg::BehaviorParameter
Expand Down

0 comments on commit 4378dbe

Please sign in to comment.