Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@ set -e

root=`pwd`

if [[ -z "$MJLIB_PATH" ]]; then
# If MJLIB_PATH was not set, attempt to locate mujoco.so.
# This grep aims to avoid nogl versions of the MuJoCo libraru.
MJLIB_PATH=$(find -L $HOME/.mujoco/ -type f -name "*mujoco*.so" | grep "libmujoco[[:digit:]]*.so")
if [[ ! $? ]]; then
echo "Failed to find mujoco shared library (.so file)."
echo "Please set MJLIB_PATH to the location of the mujoco .so file."
exit 1
fi
fi

if [[ ! -r "$MJLIB_PATH" ]]; then
echo "Cannot read the mujoco library at ${MJLIB_PATH}"
echo "Set the MJLIB_PATH env var to change this location"
exit 1
fi

echo "MJLIB_PATH: ${MJLIB_PATH}"
export MJLIB_PATH

cmake_binary=${CMAKE_EXE:-cmake}
echo "Using cmake command '$cmake_binary'"

Expand Down
2 changes: 1 addition & 1 deletion cpp/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ def build_extension(self, ext):
"-DCMAKE_BUILD_TYPE={}".format(build_type),
"-DDM_ROBOTICS_BUILD_TESTS=OFF",
"-DDM_ROBOTICS_BUILD_WHEEL=True",
"-DDM_ROBOTICS_MUJOCO_TAR={}".format(PRE_DOWNLOADED_MUJOCO_TAR),
"--log-level=VERBOSE",
]

if use_preinstalled_libs:
cmake_args.append("-DDM_ROBOTICS_MUJOCO_TAR={}".format(PRE_DOWNLOADED_MUJOCO_TAR))
cmake_args.append("-DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=TRUE")
cmake_args.append("-DDM_ROBOTICS_USE_SYSTEM_Eigen3:BOOL=TRUE")

Expand Down
2 changes: 0 additions & 2 deletions py/agentflow/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ deps =
{distshare}/dm_robotics*geometry-*.zip
-r requirements_external.txt
setuptools
passenv = MJLIB_PATH
commands = python setup.py sdist bdist_wheel


Expand All @@ -19,7 +18,6 @@ deps =
{distshare}/dm_robotics*transformations-*.zip
{distshare}/dm_robotics*geometry-*.zip
-r requirements_external.txt
passenv = MJLIB_PATH
commands = python run_tests.py .

# This test command runs each test in a separate process.
Expand Down
2 changes: 0 additions & 2 deletions py/geometry/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ deps =
{distshare}/dm_robotics*transformations-*.zip
-rrequirements_external.txt
setuptools
passenv = MJLIB_PATH
commands = python setup.py sdist bdist_wheel


[testenv:test]
deps =
{distshare}/dm_robotics*transformations-*.zip
-r requirements_external.txt
passenv = MJLIB_PATH
commands = python -m unittest discover -p '*_test.py'
2 changes: 0 additions & 2 deletions py/manipulation/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ deps =
{distshare}/dm_robotics*moma-*.zip
-r requirements_external.txt
setuptools
passenv = MJLIB_PATH
commands = python setup.py sdist bdist_wheel

[testenv:test]
Expand All @@ -23,5 +22,4 @@ deps =
{distshare}/dm_robotics*moma-*.zip
-r requirements_external.txt
-r requirements_test.txt
passenv = MJLIB_PATH
commands = python run_tests.py .
2 changes: 0 additions & 2 deletions py/moma/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ deps =
{distshare}/dm_robotics*controllers-*manylinux2014_x86_64.whl
-r requirements_external.txt
setuptools
passenv = MJLIB_PATH
commands =
python setup.py sdist bdist_wheel

Expand All @@ -26,7 +25,6 @@ deps =
{distshare}/dm_robotics*agentflow-*.zip
{distshare}/dm_robotics*controllers-*manylinux2014_x86_64.whl
-r requirements_external.txt
passenv = MJLIB_PATH
setenv =
MUJOCO_GL = osmesa
commands = python run_tests.py .
Expand Down