-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(start_planner): refactor debug and safety check logic
This commit refactors the start_planner module in several ways: - The verbose parameter is removed from the YAML configuration file and replaced with a print_debug_info parameter under a new debug section. - A new function, initVariables(), is introduced to initialize member variables, which is called during processOnEntry() and processOnExit(). - The function isBackwardDrivingComplete() is renamed to hasFinishedBackwardDriving() to better reflect its purpose. It also includes additional debug prints. - A new function, checkCollisionWithDynamicObjects(), is introduced to encapsulate the logic for checking collisions with dynamic objects. - The function isExecutionReady() is modified to use the new checkCollisionWithDynamicObjects() function. - The function resetStatus() is simplified by directly assigning an empty PullOutStatus object to status_. - The function updatePullOutStatus() now uses the new hasFinishedBackwardDriving() function. - The logging of pull out status is now controlled by the new print_debug_info parameter rather than the removed verbose parameter. These changes improve the clarity of the code and make it easier to control debug output. Signed-off-by: kyoichi-sugahara <[email protected]>
- Loading branch information
1 parent
ebba4f7
commit e8f31b7
Showing
5 changed files
with
96 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters