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
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
sudo apt install -y libsuitesparse-dev
pip install uv
uv pip install --system -e ".[dev,examples]"
uv add --dev pytest pytest-cov
- name: Test with pytest
run: |
pytest
run: uv run pytest --cov=pyroki --cov-report=term-missing
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dev = [
"scikit-sparse",
"ruff",
"pytest",
"pytest-cov",
"m2r2",
]

Expand Down
25 changes: 25 additions & 0 deletions tests/test_urdf_loader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""Basic IK

Simple test to verify pyroki and some of its dependencies are properly installed
"""

import time

import numpy as np
import pyroki as pk
import viser
from robot_descriptions.loaders.yourdfpy import load_robot_description
from viser.extras import ViserUrdf


def test_urdf_loader():
"""Main function for basic IK."""

urdf = load_robot_description("panda_description")
target_link_name = "panda_hand"

# Create robot.
robot = pk.Robot.from_urdf(urdf)

if __name__ == "__main__":
test_urdf_loader()