-
Notifications
You must be signed in to change notification settings - Fork 37
Add relevant code for drone gimbal control #44
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
Open
1Feishu
wants to merge
8
commits into
Alliance-Algorithm:flight
Choose a base branch
from
1Feishu:dev
base: flight
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
db18fd7
new
1Feishu 8c0422a
flight.2
1Feishu 9ffd126
draft
1Feishu b50b39f
update librmcs submodule pointer
1Feishu c2e3934
add MHF7015
1Feishu 721d62d
new
1Feishu f7ecebf
delete *.gv *.pdf
1Feishu 6320b60
Merge branch 'flight' into dev
1Feishu 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 169.254.233.233 |
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,192 @@ | ||
| rmcs_executor: | ||
| ros__parameters: | ||
| update_rate: 1000.0 | ||
| components: | ||
| - rmcs_core::hardware::Flight -> flight_hardware | ||
| - rmcs_core::referee::Status -> referee_status | ||
|
|
||
| - rmcs_core::controller::gimbal::SimpleGimbalController -> gimbal_controller | ||
| - rmcs_core::controller::pid::ErrorPidController -> yaw_angle_pid_controller | ||
| - rmcs_core::controller::pid::PidController -> yaw_velocity_pid_controller | ||
| - rmcs_core::controller::pid::ErrorPidController -> pitch_angle_pid_controller | ||
|
|
||
| - rmcs_core::controller::shooting::FrictionWheelController -> friction_wheel_controller | ||
| - rmcs_core::controller::shooting::HeatController -> heat_controller | ||
| - rmcs_core::controller::shooting::BulletFeederController17mm -> bullet_feeder_controller | ||
| - rmcs_core::controller::pid::PidController -> left_friction_velocity_pid_controller | ||
| - rmcs_core::controller::pid::PidController -> right_friction_velocity_pid_controller | ||
| - rmcs_core::controller::pid::PidController -> bullet_feeder_velocity_pid_controller | ||
|
|
||
| - rmcs_core::referee::command::Interaction -> referee_interaction | ||
| #- rmcs_core::referee::command::interaction::Ui -> referee_ui | ||
| #- rmcs_core::referee::app::ui::Flight -> referee_ui_flight | ||
|
|
||
| - rmcs_core::referee::Command -> referee_command | ||
|
|
||
| # - rmcs_auto_aim::AutoAimInitializer -> auto_aim_initializer | ||
| # - rmcs_auto_aim::AutoAimController -> auto_aim_controller | ||
|
|
||
| - rmcs_core::broadcaster::ValueBroadcaster -> value_broadcaster | ||
| - rmcs_core::broadcaster::TfBroadcaster -> tf_broadcaster | ||
|
|
||
| value_broadcaster: | ||
| ros__parameters: | ||
| forward_list: | ||
| - /gimbal/pitch/angle | ||
| - /gimbal/pitch/velocity | ||
| - /gimbal/pitch/torque | ||
| - /gimbal/pitch/control_torque | ||
| - /gimbal/pitch/control_angle_error | ||
| - /gimbal/pitch/control_velocity | ||
| - /gimbal/pitch/velocity_imu | ||
|
|
||
| - /gimbal/yaw/angle | ||
| - /gimbal/yaw/velocity | ||
| - /gimbal/yaw/torque | ||
| - /gimbal/yaw/control_torque | ||
| - /gimbal/yaw/control_angle_error | ||
| - /gimbal/yaw/control_velocity | ||
|
|
||
| tf_broadcaster: | ||
| ros__parameters: | ||
| tf: /tf | ||
|
|
||
| flight_hardware: | ||
| ros__parameters: | ||
| usb_pid: -1 | ||
| yaw_motor_zero_point: 4608 | ||
| pitch_motor_zero_point: 51629 | ||
|
|
||
| referee_status: | ||
| ros__parameters: | ||
| path: /dev/tty0 | ||
|
|
||
| gimbal_controller: | ||
| ros__parameters: | ||
| upper_limit: -0.149 | ||
| lower_limit: 0.149 | ||
| yaw_upper_limit: -0.349 | ||
| yaw_lower_limit: 0.349 | ||
|
|
||
| yaw_angle_pid_controller: | ||
| ros__parameters: | ||
| measurement: /gimbal/yaw/control_angle_error | ||
| control: /gimbal/yaw/control_velocity | ||
| kp: 8.0 | ||
| ki: 0.0 | ||
| kd: 0.0003 | ||
|
|
||
| yaw_velocity_pid_controller: | ||
| ros__parameters: | ||
| measurement: /gimbal/yaw/velocity_imu | ||
| setpoint: /gimbal/yaw/control_velocity | ||
| control: /gimbal/yaw/control_torque | ||
| kp: 1.5 | ||
| ki: 0.0 | ||
| kd: 0.01 | ||
|
|
||
| pitch_angle_pid_controller: | ||
| ros__parameters: | ||
| measurement: /gimbal/pitch/control_angle_error | ||
| control: /gimbal/pitch/control_velocity | ||
| kp: 16.0 | ||
| ki: 0.0 | ||
| kd: 0.0 | ||
|
|
||
| friction_wheel_controller: | ||
| ros__parameters: | ||
| friction_wheels: | ||
| - /gimbal/left_friction | ||
| - /gimbal/right_friction | ||
| friction_velocities: | ||
| - 740.0 | ||
| - 740.0 | ||
| friction_soft_start_stop_time: 1.0 | ||
|
|
||
| heat_controller: | ||
| ros__parameters: | ||
| heat_per_shot: 10000 | ||
| reserved_heat: 0 | ||
|
|
||
| bullet_feeder_controller: | ||
| ros__parameters: | ||
| bullets_per_feeder_turn: 8.0 | ||
| shot_frequency: 20.0 | ||
| safe_shot_frequency: 10.0 | ||
| eject_frequency: 10.0 | ||
| eject_time: 0.05 | ||
| deep_eject_frequency: 5.0 | ||
| deep_eject_time: 0.2 | ||
| single_shot_max_stop_delay: 2.0 | ||
|
|
||
| shooting_recorder: | ||
| ros__parameters: | ||
| friction_wheel_count: 2 | ||
| # 1: trigger, 2: timing | ||
| log_mode: 1 | ||
|
|
||
| left_friction_velocity_pid_controller: | ||
| ros__parameters: | ||
| measurement: /gimbal/left_friction/velocity | ||
| setpoint: /gimbal/left_friction/control_velocity | ||
| control: /gimbal/left_friction/control_torque | ||
| kp: 0.003436926 | ||
| ki: 0.00 | ||
| kd: 0.009373434 | ||
|
|
||
| right_friction_velocity_pid_controller: | ||
| ros__parameters: | ||
| measurement: /gimbal/right_friction/velocity | ||
| setpoint: /gimbal/right_friction/control_velocity | ||
| control: /gimbal/right_friction/control_torque | ||
| kp: 0.003436926 | ||
| ki: 0.00 | ||
| kd: 0.009373434 | ||
|
|
||
| bullet_feeder_velocity_pid_controller: | ||
| ros__parameters: | ||
| measurement: /gimbal/bullet_feeder/velocity | ||
| setpoint: /gimbal/bullet_feeder/control_velocity | ||
| control: /gimbal/bullet_feeder/control_torque | ||
| kp: 0.583 | ||
| ki: 0.0 | ||
| kd: 0.0 | ||
|
|
||
| auto_aim_controller: | ||
| ros__parameters: | ||
| # capture | ||
| use_video: false # If true, use video stream instead of camera. | ||
| video_path: "/workspaces/RMCS/rmcs_ws/resources/1.avi" | ||
| exposure_time: 3 | ||
| invert_image: false | ||
| # identifier | ||
| armor_model_path: "/models/mlp.onnx" | ||
| # pnp | ||
| fx: 1.722231837421459e+03 | ||
| fy: 1.724876404292754e+03 | ||
| cx: 7.013056440882832e+02 | ||
| cy: 5.645821718351237e+02 | ||
| k1: -0.064232403853946 | ||
| k2: -0.087667493884102 | ||
| k3: 0.792381808294582 | ||
|
|
||
| # tracker | ||
| armor_predict_duration: 500 | ||
| # controller | ||
| gimbal_predict_duration: 100 | ||
| yaw_error: 0.02 | ||
| pitch_error: -0.01 | ||
| shoot_velocity: 28.0 | ||
| predict_sec: 0.095 | ||
| # etc | ||
| buff_predict_duration: 200 | ||
| buff_model_path: "/models/buff_nocolor_v6.onnx" | ||
| omni_exposure: 1000.0 | ||
| record_fps: 120 | ||
| debug: false # Setup in actual using.Debug mode is used when referee is not ready | ||
| debug_color: 0 # 0 For blue while 1 for red. mine | ||
| debug_robot_id: 4 | ||
| debug_buff_mode: false | ||
| record: true | ||
| raw_img_pub: false # Set false in actual use | ||
| image_viewer_type: 2 |
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
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
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.