-
Notifications
You must be signed in to change notification settings - Fork 1
Move hardcoded kick power values to configurable parameters in consai_description #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: tilt-silvie <2959645+tilt-silvie@users.noreply.github.com>
|
consai_robot_controller内のkick関連のコードは、今後使わなくなります。 |
ShotaAk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consai_robot_controlle内のkick関連のコードは、今後使わなくなります。
なので、consai_robot_controllerに関する変更はPRから除外してください。
|
consai_robot_controlle内のkick関連のコードは、今後使わなくなります。 |
…n tactic changes Co-authored-by: tilt-silvie <2959645+tilt-silvie@users.noreply.github.com>
All consai_robot_controller changes have been removed from the PR per your feedback. The PR now only includes the Python tactic changes and configuration parameters. Commit: b38e702
All consai_robot_controller changes have been removed from the PR per your feedback. The PR now only includes the Python tactic changes and configuration parameters. Commit: b38e702
All consai_robot_controller changes have been removed from the PR per your feedback. The PR now only includes the Python tactic changes and configuration parameters. Commit: b38e702 |
| max_shoot_speed: 5.5 # シュート時の最大速度 [m/s] | ||
| max_pass_speed: 4.0 # パス時の最大速度 [m/s] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これら2つは使用されていないので削除してください
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the unused max_shoot_speed and max_pass_speed parameters from the configuration. Commit: b0dd799
| max_kick_power: 6.0 # 最大キック力 [m/s] (6.5 m/sを越えてはいけない) | ||
| max_shoot_speed: 5.5 # シュート時の最大速度 [m/s] | ||
| max_pass_speed: 4.0 # パス時の最大速度 [m/s] | ||
| min_pass_speed: 2.0 # パス時の最小速度 [m/s] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min_pass_powerに名前を変えてください
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed min_pass_speed to min_pass_power in the configuration and updated all references in the code. Commit: b0dd799
| max_shoot_speed: 5.5 # シュート時の最大速度 [m/s] | ||
| max_pass_speed: 4.0 # パス時の最大速度 [m/s] | ||
| min_pass_speed: 2.0 # パス時の最小速度 [m/s] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
max_shoot_speedとmax_pass_speedは使われていないので削除してください。
min_pass_speedはmin_pass_powerに名前を変えてください
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
・max_shoot_speedとmax_pass_speedは使われていないので削除してください。
・min_pass_speedはmin_pass_powerに名前を変えてください
・lintで弾かれています。CIのbuild_and_lint ジョブが成功するように修正してください。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All requested changes completed: removed unused max_shoot_speed and max_pass_speed parameters, renamed min_pass_speed to min_pass_power, and fixed all linting issues. Commit: b0dd799
|
consai_description/config/strategy/normal.yaml について また、全体について |
…pass_power Co-authored-by: tilt-silvie <2959645+tilt-silvie@users.noreply.github.com>
Co-authored-by: tilt-silvie <2959645+tilt-silvie@users.noreply.github.com>
All requested changes completed: removed unused max_shoot_speed and max_pass_speed parameters, renamed min_pass_speed to min_pass_power, and fixed all linting issues (trailing spaces in YAML file). Commit: 122dc63 |
ShotaAk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Problem
Maximum kick power values were hardcoded in tactic files, making parameter tuning difficult and requiring code changes for adjustments. The issue affected both Python and C++ tactic implementations:
Kicktactic hadMAX_KICK_POWER = 6.0andTAPPING_KICK_POWER = 2.0ControlBallhadmax_shoot_speed_ = 5.5andmax_pass_speed_ = 4.0Solution
This PR moves all kick power parameters to the centralized configuration system in
consai_description, allowing easy tuning without code modifications.Changes Made
1. Configuration Layer (
consai_description)kick_powersection tostrategy/normal.yamlwith parameters:max_kick_power: 6.0- Maximum kick force (must not exceed 6.5 m/s)max_shoot_speed: 5.5- Maximum shooting velocitymax_pass_speed: 4.0- Maximum passing velocitymin_pass_speed: 2.0- Minimum passing velocitytapping_kick_power: 2.0- Power for dribbling taps2. World Model Integration
GameConfigModelwith kick power fieldsworld_model_provider_nodeto parse kick power from strategy parameters and populategame_config3. Python Tactic Updates
Kickclasspass_power()method to acceptworld_modelparameterworld_model.game_configvalues4. C++ Tactic Updates
set_kick_power_params()method toControlBallclassUsage
Kick power can now be tuned by editing
consai_description/config/strategy/normal.yaml:Parameters are automatically loaded through the existing parameter system and made available to all tactics via
world_model.game_config.Fixes #493.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.