Skip to content
Snippets Groups Projects
Unverified Commit d2d205e4 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #126 from nim65s/devel

Run cassie tests with pinocchio 2.9.x + tooling chores
parents c4715cb1 0f9e67e3
No related branches found
No related tags found
No related merge requests found
Pipeline #18538 passed
# format (Guilhem Saurel, 2022-04-11)
a6aa4f4b6cf0a1857fba3075566745dbf4c22e18
# pre-commit clean (Guilhem Saurel, 2022-04-01)
3ff105e250d5f984d5200a52c2791263be96da5d
# update tooling (Guilhem Saurel, 2022-03-31)
d27092f3d16c077b70216e47635d1d29247a5dde
# format (Rohan Budhiraja, 2022-03-31)
98c7ea06d36d670e6d1f6377b2728e33540af4c7
# update python format (Guilhem Saurel, 2022-02-17)
4dba3f86c0a96379fa479e8b768d315daca70bc2
# Address python code formatting (Julian Viereck, 2021-06-14)
c3e1dffe22d450e5301d4f7801a14974286d7c61
# format (Guilhem Saurel, 2021-05-26)
2abddbc5c3833379bace126ab7cb0a07f1addaff
# [cleanup] Fixed code format (Carlos Mastalli, 2021-05-04)
c89f2524bf9b1a76ec29b99910caea641c1b2496
# python: format (Guilhem Saurel, 2020-10-13)
2f6b85c741b981d90185e25845a4614a7a97e98b
# [Format] fix linters (Guilhem Saurel, 2019-08-28)
9f92ecdf27449c8404bce0d5756fa65ab1a4912c
# [format] Formatted the robot_loader script (Carlos Mastalli, 2019-08-28)
34d3182c9ee99568706921f3e94c5fdd75254c17
# [format] Fixed further errors in the code (Carlos Mastalli, 2019-04-16)
9ce3cc472c367373812b3401a8efbc85094f8423
# [format] Added format configuration (Carlos Mastalli, 2019-04-16)
5c6492c035e9f98c686dc8859af1ae0fe56b2b60
# [format] Fixed format issues (Carlos Mastalli, 2019-04-16)
be1a995b9683a9989755c9a5be8676d82a4589bc
ci:
autoupdate_branch: 'devel'
exclude: tests/test_python-syntax_error.py exclude: tests/test_python-syntax_error.py
repos: repos:
- repo: https://github.com/pre-commit/mirrors-clang-format - repo: https://github.com/pre-commit/mirrors-clang-format
......
...@@ -11,23 +11,20 @@ pin.switchToNumpyArray() ...@@ -11,23 +11,20 @@ pin.switchToNumpyArray()
def getModelPath(subpath, printmsg=False): def getModelPath(subpath, printmsg=False):
source = dirname(dirname(dirname(__file__))) # top level source directory source = dirname(dirname(dirname(__file__))) # top level source directory
paths = [ paths = [
join( # function called from "make release" in build/ dir
dirname(dirname(dirname(source))), "robots" join(dirname(dirname(dirname(source))), "robots"),
), # function called from "make release" in build/ dir # function called from a build/ dir inside top level source
join( join(dirname(source), "robots"),
dirname(source), "robots" # function called from top level source dir
), # function called from a build/ dir inside top level source join(source, "robots"),
join(source, "robots"), # function called from top level source dir
] ]
try: try:
from .path import EXAMPLE_ROBOT_DATA_MODEL_DIR, EXAMPLE_ROBOT_DATA_SOURCE_DIR from .path import EXAMPLE_ROBOT_DATA_MODEL_DIR, EXAMPLE_ROBOT_DATA_SOURCE_DIR
paths.append( # function called from installed project
EXAMPLE_ROBOT_DATA_MODEL_DIR paths.append(EXAMPLE_ROBOT_DATA_MODEL_DIR)
) # function called from installed project # function called from off-tree build dir
paths.append( paths.append(EXAMPLE_ROBOT_DATA_SOURCE_DIR)
EXAMPLE_ROBOT_DATA_SOURCE_DIR
) # function called from off-tree build dir
except ImportError: except ImportError:
pass pass
paths += [join(p, "../../../share/example-robot-data/robots") for p in sys.path] paths += [join(p, "../../../share/example-robot-data/robots") for p in sys.path]
......
...@@ -50,7 +50,8 @@ class RobotTestCase(unittest.TestCase): ...@@ -50,7 +50,8 @@ class RobotTestCase(unittest.TestCase):
except ImportError: except ImportError:
import pinocchio import pinocchio
self.assertLess(int(pinocchio.__version__.split(".")[0]), 3) pin_version = tuple(int(i) for i in pinocchio.__version__.split("."))
self.assertLess(pin_version, (2, 9, 1))
def test_double_pendulum(self): def test_double_pendulum(self):
self.check("double_pendulum", 2, 2) self.check("double_pendulum", 2, 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment