-
Notifications
You must be signed in to change notification settings - Fork 2
fixed/improved angular orbit #1491
base: development
Are you sure you want to change the base?
Conversation
angular orbit was not working properly, so I just rewrote it. Needs some finetuning but works well enough for now.
The orbit of the robot is much more smooth |
Has this been tested with real robots? |
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.
See comments. Nothing major.
namespace rtt::ai::stp::skill { | ||
|
||
Status Kick::onUpdate(const StpInfo &info) noexcept { | ||
// Clamp and set kick velocity | ||
float kickVelocity = std::clamp(info.getKickChipVelocity(), control_constants::MIN_KICK_POWER, control_constants::MAX_KICK_POWER); | ||
|
||
RTT_DEBUG(kickVelocity) |
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.
Remove before merging.
@@ -86,7 +86,7 @@ double ControlUtils::determineKickForce(const double distance, stp::ShotType sho | |||
|
|||
double kickForce; | |||
if (shotType == stp::ShotType::PASS) { | |||
kickForce = 1.5; | |||
kickForce = 1.8; |
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.
Seemse unrelated to what the pull request is about.
As Rolf asked, was this actually tested on the field? Based on "The actual robot might loose the loose the ball", I'm guessing not :) Based on the changes you made, I can believe this works better in GrSim, but I highly doubt it does what you expect on the field. A lot of the code you changed/removed in this PR was specifically designed and tuned to improve performance on the field (probably at the expense of performance in GrSim, but we didn't really look at this much as we created this quite shortly before the robocup). Things such as padding the angle to account for delay and delegating the decision of when to shoot to the robot instead of the AI can be really useful with actual robots but are quite useless/counterproductive in the simulator. Of course, it is still important everything works well in the simulator, but doing so at the expense of the performance on the field isn't a good approach IMO. Of course, if needed, you could add some |
angular orbit was not working properly, so I just rewrote it. Needs some finetuning but works well enough for now.
Comments for the reviewer
Pre pull request checklist:
Code Quality
Testing
Commit Messages
what the problem you are fixing was. Note also negative decision (e.g., why did you not do particular thing)
TLDR: Commit message are comprehensive