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 Feb 1, 2024
1 parent c7265fd commit 12b65d8
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; }

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; };

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 12b65d8

Please sign in to comment.