Skip to content

Commit

Permalink
add const
Browse files Browse the repository at this point in the history
Signed-off-by: Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed Jan 31, 2024
1 parent 29f1899 commit 0c72939
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class DynamicAvoidanceModule : public SceneModuleInterface

bool canTransitFailureState() override { return false; }

ModuleStatus setInitState() override { return ModuleStatus::IDLE; }
ModuleStatus setInitState() const override { return ModuleStatus::IDLE; }

Check warning on line 348 in planning/behavior_path_dynamic_avoidance_module/include/behavior_path_dynamic_avoidance_module/scene.hpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_dynamic_avoidance_module/include/behavior_path_dynamic_avoidance_module/scene.hpp#L348

Added line #L348 was not covered by tests

bool isLabelTargetObstacle(const uint8_t label) const;
void updateTargetObjects();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class LaneChangeInterface : public SceneModuleInterface

bool canTransitFailureState() override;

ModuleStatus setInitState() override { return ModuleStatus::WAITING_APPROVAL; };
ModuleStatus setInitState() const override { return ModuleStatus::WAITING_APPROVAL; };

Check warning on line 129 in planning/behavior_path_lane_change_module/include/behavior_path_lane_change_module/interface.hpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_lane_change_module/include/behavior_path_lane_change_module/interface.hpp#L129

Added line #L129 was not covered by tests

void updateDebugMarker() const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ class SceneModuleInterface
/**
* @brief Explicitly set the initial state
*/
virtual ModuleStatus setInitState() { return ModuleStatus::RUNNING; }
virtual ModuleStatus setInitState() const { return ModuleStatus::RUNNING; }

/**
* @brief Get candidate path. This information is used for external judgement.
Expand Down

0 comments on commit 0c72939

Please sign in to comment.