-
Notifications
You must be signed in to change notification settings - Fork 932
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
Inverts SE-2 keyboard device actions (Z, X) for yaw command #1030
Conversation
Thanks a lot for the fix. The issue seems to arise more from different keyboard layouts (US English vs German English). Not sure if there's a way to check the layout and assign the keys accordingly. |
If I may weigh in on this. I don't think we need to discuss keyboard layouts for the main and most important fix of this PR. So that part of this PR simply makes everything consistent. The second part is the docstring and the terminal output. I also don't think it is practical to detect all of this programmatically. We would need to find out the physical layout of the connected keyboard, and they keyboard layout selected in the OS. TL;DR: I strongly believe the PR is good as is. |
Thanks for weighing in @lorenwel . I agree that the changes make a lot of sense. On closer look, the Z-axis rotation is mapped differently in SE(2) and SE(3) keyboard versions. Should we make the two consistent as well? We can also just do that in a separate MR. Don't want to block anyone :) |
Thanks for merging. Good point on the While we're on that, we could then also consider changing the signs for some of those keybindings. |
…m#1030) # Description This MR swaps the keyboard command (X, Z) for yaw in the `Se2Keyboard` class to have the following mapping: - Z - positive yaw - X - negative yaw It also corrects the docstring of the `Se2Keyboard` class. Fixes isaac-sim#1029 _Note:_ I double checked the `Se3Keyboard` class and the implementation there is correct. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have run all the tests with `./isaaclab.sh --test` and they pass - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Description
Swapping the keyboard command (X, Z) for yaw in the
Se2Keyboard
class to have the following mapping:Corrected also the docstring of the
Se2Keyboard
class.See Issue #1029
Note: I double checked the
Se3Keyboard
class and the implementation there is correct.Type of change
Checklist
pre-commit
checks with./isaaclab.sh --format
./isaaclab.sh --test
and they passconfig/extension.toml
fileCONTRIBUTORS.md
or my name already exists there