diff --git a/setup.cfg b/setup.cfg index 80c75344f..69c1ec577 100644 --- a/setup.cfg +++ b/setup.cfg @@ -75,6 +75,7 @@ style = pre-commit testing = idyntree >= 12.2.1 + networkx pytest >=6.0 pytest-icdiff robot-descriptions diff --git a/src/jaxsim/parsers/descriptions/__init__.py b/src/jaxsim/parsers/descriptions/__init__.py index bda3d8d00..ff3bf631d 100644 --- a/src/jaxsim/parsers/descriptions/__init__.py +++ b/src/jaxsim/parsers/descriptions/__init__.py @@ -1,4 +1,10 @@ -from .collision import BoxCollision, CollidablePoint, CollisionShape, SphereCollision, MeshCollision +from .collision import ( + BoxCollision, + CollidablePoint, + CollisionShape, + MeshCollision, + SphereCollision, +) from .joint import JointDescription, JointGenericAxis, JointType from .link import LinkDescription from .model import ModelDescription diff --git a/tests/conftest.py b/tests/conftest.py index b197d59b2..4800e0b8c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -183,6 +183,7 @@ def jaxsim_model_ergocub() -> js.model.JaxSimModel: _ = os.environ.pop("ROBOT_DESCRIPTION_COMMIT", None) from robot_descriptions._package_dirs import get_package_dirs + os.environ["ROBOT_DESCRIPTION_URI_PATH"] = ( robot_descriptions.ergocub_description.PACKAGE_PATH ) @@ -193,16 +194,9 @@ def jaxsim_model_ergocub() -> js.model.JaxSimModel: ) ) -<<<<<<< HEAD os.environ["GAZEBO_MODEL_PATH"] = os.environ.get( "GAZEBO_MODEL_PATH", "" ) + ":".join(get_package_dirs(robot_descriptions.ergocub_description)) -======= - os.environ["GAZEBO_MODEL_PATH"] = ( - os.environ.get("GAZEBO_MODEL_PATH", "") - + f":{get_package_dirs(robot_descriptions.ergocub_description)}" - ) ->>>>>>> 4f96412 (Use already existing env var to solve mesh URIs) return build_jaxsim_model(model_description=model_urdf_path) @@ -252,16 +246,9 @@ def jaxsim_model_ur10() -> js.model.JaxSimModel: model_urdf_path = pathlib.Path(robot_descriptions.ur10_description.URDF_PATH) -<<<<<<< HEAD os.environ["GAZEBO_MODEL_PATH"] = os.environ.get( "GAZEBO_MODEL_PATH", "" ) + ":".join(get_package_dirs(robot_descriptions.ur10_description)) -======= - os.environ["GAZEBO_MODEL_PATH"] = ( - os.environ.get("GAZEBO_MODEL_PATH", "") - + f":{get_package_dirs(robot_descriptions.ur10_description)}" - ) ->>>>>>> 4f96412 (Use already existing env var to solve mesh URIs) return build_jaxsim_model(model_description=model_urdf_path)