Skip to content
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

Speed Calculation in Sim #2153

Merged
merged 10 commits into from
Jan 31, 2024
Merged

Speed Calculation in Sim #2153

merged 10 commits into from
Jan 31, 2024

Conversation

Squid5678
Copy link
Contributor

Description

James and I (Aalind) were assigned a task to calculate the speed necessary to pass in sim. We used the Technical Description Paper from Tigers Mannheim in order to find an accurate formula to use. We also created constants that will need to be tuned. As of right now, the values are tuned for the simulator.

Associated / Resolved Issue

Resolves https://app.clickup.com/2209401/v/l/li/900501233982

Design Documents

N/A

Steps to Test

Works as expected in sim when run. Further testing needs to be done on an actual robot.

Expected result:
Passing works as expected (with speed changing based on distance).

Key Files to Review

Offense

  • offense.cpp
  • offense.hpp

Review Checklist

  • Docstrings: All methods and classes should have the file appropriate docstrings which follow the guidelines in the "Contributing" page of our docs.
  • Remove extra print statements: Any print statements used for debugging should be removed
  • Tag reviewers: Tag some people for review and ping them on Slack

(Optional) Sub-issues (for drafts)

Note: if you find yourself breaking this PR into many smaller features, it may make sense to break up the PR into logical units based on these features.

  • Step 1
  • Step 2

Copy link
Contributor

@sid-parikh sid-parikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work! Just a couple nits.

soccer/src/soccer/strategy/agent/position/offense.cpp Outdated Show resolved Hide resolved
soccer/src/soccer/strategy/agent/position/offense.hpp Outdated Show resolved Hide resolved
soccer/src/soccer/strategy/agent/position/offense.hpp Outdated Show resolved Hide resolved
@Squid5678
Copy link
Contributor Author

@sid-parikh made the changes as requested.

automated style fixes

Co-authored-by: Squid5678 <[email protected]>
@sid-parikh sid-parikh self-requested a review January 23, 2024 17:12
Copy link
Contributor

@sid-parikh sid-parikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Sorry, a couple more things I didn't notice on the first review.

framework Outdated Show resolved Hide resolved
soccer/src/soccer/strategy/agent/position/offense.hpp Outdated Show resolved Hide resolved
@sid-parikh
Copy link
Contributor

quick tip: push the "re-request review" button on my name after you make changes so I'll see it again.

@jvogt23 jvogt23 requested a review from sid-parikh January 29, 2024 02:32
Copy link
Contributor

@sid-parikh sid-parikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Feel free to press merge whenever.

automated style fixes

Co-authored-by: jvogt23 <[email protected]>
@Squid5678 Squid5678 merged commit cd689b8 into ros2 Jan 31, 2024
2 checks passed
@Squid5678 Squid5678 deleted the james-vogt/variable-kick branch January 31, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants