Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KincoActuatorIsaacLab
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kevin
KincoActuatorIsaacLab
Commits
ab0c5f59
Commit
ab0c5f59
authored
Apr 24, 2023
by
Mayank Mittal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds disabling of kit camera when using gamepad
parent
fcbfd55a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
se2_gamepad.py
...aac.orbit/omni/isaac/orbit/devices/gamepad/se2_gamepad.py
+4
-1
se3_gamepad.py
...aac.orbit/omni/isaac/orbit/devices/gamepad/se3_gamepad.py
+3
-0
No files found.
source/extensions/omni.isaac.orbit/omni/isaac/orbit/devices/gamepad/se2_gamepad.py
View file @
ab0c5f59
...
...
@@ -55,6 +55,9 @@ class Se2Gamepad(DeviceBase):
dead_zone (float): Magnitude of dead zone for gamepad. An event value from the gamepad less than
this value will be ignored. Defaults to 0.01.
"""
# turn off simulator gamepad control
carb_settings_iface
=
carb
.
settings
.
get_settings
()
carb_settings_iface
.
set_bool
(
"/persistent/app/omniverse/gamepadCameraControl"
,
False
)
# store inputs
self
.
v_x_sensitivity
=
v_x_sensitivity
self
.
v_y_sensitivity
=
v_y_sensitivity
...
...
@@ -136,7 +139,7 @@ class Se2Gamepad(DeviceBase):
cur_val
=
event
.
value
if
abs
(
cur_val
)
<
self
.
dead_zone
:
cur_val
=
0
print
(
event
)
# -- left and right stick
if
event
.
input
in
self
.
_INPUT_STICK_VALUE_MAPPING
:
direction
,
axis
,
value
=
self
.
_INPUT_STICK_VALUE_MAPPING
[
event
.
input
]
...
...
source/extensions/omni.isaac.orbit/omni/isaac/orbit/devices/gamepad/se3_gamepad.py
View file @
ab0c5f59
...
...
@@ -56,6 +56,9 @@ class Se3Gamepad(DeviceBase):
dead_zone (float): Magnitude of dead zone for gamepad. An event value from the gamepad less than
this value will be ignored. Defaults to 0.01.
"""
# turn off simulator gamepad control
carb_settings_iface
=
carb
.
settings
.
get_settings
()
carb_settings_iface
.
set_bool
(
"/persistent/app/omniverse/gamepadCameraControl"
,
False
)
# store inputs
self
.
pos_sensitivity
=
pos_sensitivity
self
.
rot_sensitivity
=
rot_sensitivity
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment