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
d75e7ff6
Commit
d75e7ff6
authored
Mar 05, 2023
by
Mayank Mittal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes bug in flipping gripper commands in demo scripts
parent
8c8f8d63
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
play_arms.py
source/standalone/demo/play_arms.py
+2
-1
play_cloner.py
source/standalone/demo/play_cloner.py
+1
-1
play_ridgeback_franka.py
source/standalone/demo/play_ridgeback_franka.py
+1
-1
No files found.
source/standalone/demo/play_arms.py
View file @
d75e7ff6
...
@@ -138,9 +138,10 @@ def main():
...
@@ -138,9 +138,10 @@ def main():
actions
[:,
-
1
]
=
-
1
actions
[:,
-
1
]
=
-
1
print
(
"[INFO]: Resetting robots state..."
)
print
(
"[INFO]: Resetting robots state..."
)
# change the gripper action
# change the gripper action
if
ep_step_count
%
200
and
has_gripper
:
if
ep_step_count
%
200
==
0
and
has_gripper
:
# flip command for the gripper
# flip command for the gripper
actions
[:,
-
1
]
=
-
actions
[:,
-
1
]
actions
[:,
-
1
]
=
-
actions
[:,
-
1
]
print
(
f
"[INFO]: [Step {ep_step_count:03d}]: Flipping gripper command..."
)
# apply action to the robot
# apply action to the robot
robot
.
apply_action
(
actions
)
robot
.
apply_action
(
actions
)
# perform step
# perform step
...
...
source/standalone/demo/play_cloner.py
View file @
d75e7ff6
...
@@ -163,7 +163,7 @@ def main():
...
@@ -163,7 +163,7 @@ def main():
actions
[:,
-
1
]
=
-
1
actions
[:,
-
1
]
=
-
1
print
(
"[INFO]: Resetting robots state..."
)
print
(
"[INFO]: Resetting robots state..."
)
# change the gripper action
# change the gripper action
if
ep_step_count
%
20
0
and
has_gripper
:
if
ep_step_count
%
50
==
0
and
has_gripper
:
# flip command for the gripper
# flip command for the gripper
actions
[:,
-
1
]
=
-
actions
[:,
-
1
]
actions
[:,
-
1
]
=
-
actions
[:,
-
1
]
# apply actions
# apply actions
...
...
source/standalone/demo/play_ridgeback_franka.py
View file @
d75e7ff6
...
@@ -130,7 +130,7 @@ def main():
...
@@ -130,7 +130,7 @@ def main():
actions
[:,
-
1
]
=
1
actions
[:,
-
1
]
=
1
print
(
">>>>>>>> Reset! Opening gripper."
)
print
(
">>>>>>>> Reset! Opening gripper."
)
# change the gripper action
# change the gripper action
if
ep_step_count
%
200
:
if
ep_step_count
%
200
==
0
:
# flip command
# flip command
actions
[:,
-
1
]
=
-
actions
[:,
-
1
]
actions
[:,
-
1
]
=
-
actions
[:,
-
1
]
# change the base action
# change the base action
...
...
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