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
ca91d85f
Commit
ca91d85f
authored
Mar 02, 2023
by
Mayank Mittal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes the usage of orbit.sh
parent
9eb78106
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
16 deletions
+19
-16
.gitignore
.gitignore
+1
-1
contributing.rst
docs/source/refs/contributing.rst
+1
-1
developer.rst
docs/source/setup/developer.rst
+1
-1
installation.rst
docs/source/setup/installation.rst
+4
-3
orbit.sh
orbit.sh
+12
-10
No files found.
.gitignore
View file @
ca91d85f
...
...
@@ -30,7 +30,7 @@
*.tmp
# Isaac-Sim packman
_isaac_sim
_isaac_sim
*
_repo
_build
.lastformat
...
...
docs/source/refs/contributing.rst
View file @
ca91d85f
...
...
@@ -76,7 +76,7 @@ following command in the terminal:
.. code:: bash
./orbit.sh --format
./orbit.sh --format
# or `./orbit.sh -f`
Maintaining a changelog
-----------------------
...
...
docs/source/setup/developer.rst
View file @
ca91d85f
...
...
@@ -248,4 +248,4 @@ To run over the entire repository, please execute the following command in the t
.. code:: bash
./orbit.sh --format
./orbit.sh --format
# or `./orbit.sh -f`
docs/source/setup/installation.rst
View file @
ca91d85f
...
...
@@ -140,12 +140,13 @@ utilities to manage extensions:
./orbit.sh --help
usage: orbit.sh [-h] [-i] [-e] [-p] [-s] -- Utility to manage extensions in Isaac Orbit.
usage: orbit.sh [-h] [-i] [-e] [-
f] [-
p] [-s] -- Utility to manage extensions in Isaac Orbit.
optional arguments:
-h, --help Display the help content.
-i, --install Install the extensions inside Isaac Orbit.
-e, --extra Install extra dependencies such as the learning frameworks.
-f, --format Run pre-commit to format the code and check lints.
-p, --python Run the python executable (python.sh) provided by Isaac Sim.
-s, --sim Run the simulator executable (isaac-sim.sh) provided by Isaac Sim.
...
...
@@ -180,11 +181,11 @@ To build all the extensions, run the following commands:
.. code:: bash
./orbit.sh --install
./orbit.sh --install
# or `./orbit.sh -i`
- For installing all other dependencies (such as learning
frameworks), execute:
.. code:: bash
./orbit.sh --extra
./orbit.sh --extra
# or `./orbit.sh -e`
orbit.sh
View file @
ca91d85f
...
...
@@ -77,11 +77,12 @@ install_orbit_extension() {
# print the usage description
print_help
()
{
echo
-e
"
\n
usage:
$(
basename
"
$0
"
)
[-h] [-i] [-e] [-p] [-s] -- Utility to manage extensions in Isaac Orbit."
echo
-e
"
\n
usage:
$(
basename
"
$0
"
)
[-h] [-i] [-e] [-
f] [-
p] [-s] -- Utility to manage extensions in Isaac Orbit."
echo
-e
"
\n
optional arguments:"
echo
-e
"
\t
-h, --help Display the help content."
echo
-e
"
\t
-i, --install Install the extensions inside Isaac Orbit."
echo
-e
"
\t
-e, --extra Install extra dependencies such as the learning frameworks."
echo
-e
"
\t
-f, --format Run pre-commit to format the code and check lints."
echo
-e
"
\t
-p, --python Run the python executable (python.sh) provided by Isaac Sim."
echo
-e
"
\t
-s, --sim Run the simulator executable (isaac-sim.sh) provided by Isaac Sim."
echo
-e
"
\n
"
>
&2
...
...
@@ -103,8 +104,8 @@ fi
while
[[
$#
-gt
0
]]
;
do
# read the key
case
"
$1
"
in
# install the python packages in omni_isaac_orbit/source directory
-i
|
--install
)
# install the python packages in omni_isaac_orbit/source directory
echo
"[INFO] Installing extensions inside orbit repository..."
# recursively look into directories and install them
# this does not check dependencies between extensions
...
...
@@ -116,16 +117,16 @@ while [[ $# -gt 0 ]]; do
unset
install_orbit_extension
shift
# past argument
;;
# install the python packages for supported reinforcement learning frameworks
-e
|
--extra
)
# install the python packages for supported reinforcement learning frameworks
echo
"[INFO] Installing extra requirements such as learning frameworks..."
python_exe
=
$(
extract_isaacsim_python
)
# install the rl-frameworks specified
${
python_exe
}
-m
pip
install
-e
${
ORBIT_PATH
}
/source/extensions/omni.isaac.orbit_envs[all]
shift
# past argument
;;
# run the python provided by isaacsim
-p
|
--python
)
# run the python provided by isaacsim
python_exe
=
$(
extract_isaacsim_python
)
echo
"[INFO] Using python from:
${
python_exe
}
"
shift
# past argument
...
...
@@ -133,8 +134,8 @@ while [[ $# -gt 0 ]]; do
# exit neatly
break
;;
# run the simulator exe provided by isaacsim
-s
|
--sim
)
# run the simulator exe provided by isaacsim
isaacsim_exe
=
$(
extract_isaacsim_exe
)
echo
"[INFO] Running isaac-sim from:
${
isaacsim_exe
}
"
shift
# past argument
...
...
@@ -142,8 +143,9 @@ while [[ $# -gt 0 ]]; do
# exit neatly
break
;;
# run the formatter over the repository
-f
|
--format
)
# run the formatter over the repository
# check if pre-commit is installed
if
!
command
-v
pre-commit &>/dev/null
;
then
echo
"[INFO] Installing pre-commit..."
pip
install
pre-commit
...
...
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