Skip to content

Commit

Permalink
Removed unused tested model
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed May 22, 2024
1 parent 7b47fe1 commit e6cd3c0
Showing 1 changed file with 0 additions and 80 deletions.
80 changes: 0 additions & 80 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,86 +176,6 @@ def jaxsim_model_sphere() -> js.model.JaxSimModel:
return build_jaxsim_model(model_description=urdf_string)


@pytest.fixture(scope="session")
def jaxsim_model_single_pendulum() -> js.model.JaxSimModel:
"""
Fixture providing the JaxSim model of a single pendulum.
Returns:
The JaxSim model of a single pendulum.
"""

rod_model = rod.Sdf(
version="1.7",
model=rod.Model(
name="single_pendulum",
link=[
rod.Link(
name="base_link",
inertial=rod.Inertial(mass=100.0, inertia=rod.Inertia()),
collision=rod.Collision(
geometry=rod.Geometry(rod.Box(size=[0.15, 0.15, 2.15])),
pose=rod.Pose(pose=[0, 0, 1, 0, 0, 0]),
name="base_link_fixed_joint_lump__base_collision",
),
visual=rod.Visual(
geometry=rod.Geometry(rod.Box(size=[0.15, 0.15, 2.15])),
pose=rod.Pose(pose=[0, 0, 1, 0, 0, 0]),
name="base_link_fixed_joint_lump__base_visual",
),
),
rod.Link(
name="upper_link",
inertial=rod.Inertial(mass=0.5, inertia=rod.Inertia()),
collision=rod.Collision(
geometry=rod.Geometry(rod.Box(size=[0.15, 0.15, 1.0])),
pose=rod.Pose(pose=[0, 0, 0.5, 0, 0, 0]),
name="upper_link_collision",
),
visual=rod.Visual(
geometry=rod.Geometry(rod.Box(size=[0.15, 0.15, 1.0])),
pose=rod.Pose(pose=[0, 0, 0.5, 0, 0, 0]),
name="upper_link_visual",
),
),
],
joint=[
rod.Joint(
name="fixed_base",
type="fixed",
parent="world",
child="base_link",
),
rod.Joint(
name="upper_joint",
type="revolute",
parent="base_link",
child="upper_link",
axis=rod.Axis(
xyz=rod.Xyz([1, 0, 0]),
limit=rod.Limit(lower=-5, upper=5),
),
),
],
frame=[
rod.Frame(
name="custom_frame",
attached_to="upper_link",
pose=rod.Pose(pose=[0.5, 0.5, 0.5, 0.1, 0.2, 0.3]),
)
],
),
)

urdf_string = rod.urdf.exporter.UrdfExporter.sdf_to_urdf_string(
sdf=rod_model.models()[0]
)

model = build_jaxsim_model(model_description=urdf_string)

return model


@pytest.fixture(scope="session")
def jaxsim_model_ergocub() -> js.model.JaxSimModel:
"""
Expand Down

0 comments on commit e6cd3c0

Please sign in to comment.