Skip to content

Commit

Permalink
feat(behavior_path_planner): add postProcess() in scene module interf…
Browse files Browse the repository at this point in the history
…ace (#5336)

* add postProcess

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

* modify comment

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

---------

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
  • Loading branch information
kyoichi-sugahara authored Oct 18, 2023
1 parent f0ea398 commit 22a5ced
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ class PlannerManager
const auto result = module_ptr->run();
module_ptr->unlockRTCCommand();

module_ptr->postProcess();

module_ptr->updateCurrentState();

module_ptr->publishRTCStatus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ class SceneModuleInterface
*/
virtual void updateData() {}

/**
* @brief After executing run(), update the module-specific status and/or data used for internal
* processing that are not defined in ModuleStatus.
*/
virtual void postProcess() {}

/**
* @brief Execute module. Once this function is executed,
* it will continue to run as long as it is in the RUNNING state.
Expand Down

0 comments on commit 22a5ced

Please sign in to comment.