-
Notifications
You must be signed in to change notification settings - Fork 56
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
New KeeperMotion #1560
base: main
Are you sure you want to change the base?
New KeeperMotion #1560
Conversation
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.
I like it 🚀 . Minor things
keeper_jump_left_joints_command: | ||
Input<MotorCommands<Joints<f32>>, "keeper_jump_left_joints_command">, |
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.
Renaming suggestion: keeper_jump_left_joints_command
-> keeper_jump_left_motor_commands
to be consistent with walk_motor_commands
keeper_jump_left_joints_command: | ||
Input<MotorCommands<Joints<f32>>, "keeper_jump_left_joints_command">, | ||
keeper_jump_right_joints_command: | ||
Input<MotorCommands<Joints<f32>>, "keeper_jump_right_joints_command">, |
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.
-> keeper_jump_*_motor_commands
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.
You didn't rename all instances correctly! motor_command
!= motor_commands
if context.motion_selection.current_motion == MotionType::KeeperJumpLeft { | ||
self.interpolator | ||
.advance_by(last_cycle_duration, context.condition_input); |
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.
Please extract context.condition_input
into a variable like the last_cycle_duration
, similar to the other motion files.
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.
Now please also add a newline between the if
and the variables. I know I'm very picky, but all files are exactly written like this so I would like to keep this as consistent as possible 🙃
#[context] | ||
#[derive(Default)] | ||
pub struct MainOutputs { | ||
pub keeper_jump_left_joints_command: MainOutput<MotorCommands<Joints<f32>>>, |
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.
Please rename keeper_jump_left_joints_command
-> keeper_jump_left_motor_commands
5d0b0d7
to
187bdb5
Compare
Why? What?
renamed the WideStance to KeeperMotion and added JumpDirections for the GoalKeeper
Fixes #
I have to do a little bit tuning
How to Test
I want to test it in a test Game please, so we can it see all