-
Notifications
You must be signed in to change notification settings - Fork 5
wip: remove ugly implementation generated by ai, refactoring the interface design and add a yaw optimizer #42
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
1885963
refactor: refactor armor selection logic for better target switching …
heyeuu 2f83352
refactor: optimize armor selection logic without cost function evalua…
heyeuu 07c68b9
wip: sentry adapter
creeper5820 30d80d9
chore: update model and remove debug logging
creeper5820 c25073a
wip: add a framerate counter
creeper5820 69c45d2
refactor: rewrite armor selection logic
heyeuu a89caf0
chore: remove redundant parameters and deprecated configurations
heyeuu f013907
Merge branch 'dev/sentry_autaim' into fix/armor-chooser
creeper5820 6237f7a
feat: add ImageRecorder utility with HFYU lossless recording
creeper5820 f47656d
refactor: merge armor chooser improvements and clean up
creeper5820 09d8b01
wip: add yaw optimizer, clean code and remove shit generated by ai
creeper5820 480cb80
refactor: stabilize auto-aim tracking chain
creeper5820 d1b4bb9
chore: remove unused namespace comment
creeper5820 b5c9ca4
refactor: streamline runtime loop, rename visuals and context fields
creeper5820 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| #pragma once | ||
|
|
||
| #include <eigen3/Eigen/Geometry> | ||
| #include <rmcs_description/sentry_description.hpp> | ||
| #include <rmcs_executor/component.hpp> | ||
|
|
||
| namespace rmcs { | ||
|
|
||
| class Adapter { | ||
| public: | ||
| explicit Adapter(rmcs_executor::Component& component) { component.register_input("/tf", tf_); } | ||
|
|
||
| [[nodiscard]] auto ready() const -> bool { return tf_.ready(); } | ||
|
|
||
| [[nodiscard]] auto camera_transform() const -> Eigen::Isometry3d { | ||
| return fast_tf::lookup_transform<rmcs_description::OdomGimbalImu, | ||
| rmcs_description::CameraLink>(*tf_); | ||
| } | ||
|
|
||
| [[nodiscard]] auto barrel_direction() const -> Eigen::Vector3d { | ||
| return *fast_tf::cast<rmcs_description::OdomGimbalImu>( | ||
| rmcs_description::PitchLink::DirectionVector { Eigen::Vector3d::UnitX() }, *tf_); | ||
| } | ||
|
|
||
| private: | ||
| rmcs_executor::Component::InputInterface<rmcs_description::SentryTf> tf_; | ||
| }; | ||
|
|
||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.