Skip to content

Commit

Permalink
Fixed ruff errors. Updated version.
Browse files Browse the repository at this point in the history
  • Loading branch information
senthurayyappan committed Jan 6, 2025
1 parent 36ee2e9 commit d064fd1
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The `onshape-robotics-toolkit` library is designed for users seeking a scalable,

 

| Feature | `onshape-robotics-toolkit` | `onshape-to-robot` |
| Feature | `onshape-robotics-toolkit` | `onshape-to-robot` |
| ------------------------------------ | ------------------------------------ | --------------------------------------- |
| **Workflow Flexibility** | ✅ Open-ended and customizable | ❌ Predefined and rigid |
| **Design-Time Considerations** | ✅ None | ❌ Requires specific naming conventions |
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The `onshape-robotics-toolkit` library is designed for users seeking a scalable,

 

| Feature | `onshape-robotics-toolkit` | `onshape-to-robot` |
| Feature | `onshape-robotics-toolkit` | `onshape-to-robot` |
| ------------------------------------ | ------------------------------------ | --------------------------------------- |
| **Workflow Flexibility** | ✅ Open-ended and customizable | ❌ Predefined and rigid |
| **Design-Time Considerations** | ✅ None | ❌ Requires specific naming conventions |
Expand Down
2 changes: 1 addition & 1 deletion examples/simulation/ball.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
<inertial pos="0 0 -0.0075" quat="0.5 0.5 -0.5 0.5" mass="0.524" diaginertia="0.073541512 0.07356916 0.073543931" />
<geom name="Part-1-1-collision" type="mesh" rgba="1 0.55 0 1" mesh="Part-1-1" condim="3" contype="1" conaffinity="1" density="0" group="0" friction="0.1 0.05 0.001"/>
<geom type="mesh" rgba="1 0.55 0 1" mesh="Part-1-1" conaffinity="0" condim="1" contype="0" density="0" group="1"/>
</body>
</body>
3 changes: 0 additions & 3 deletions examples/simulation/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import numpy as np
import optuna
from mods import modify_ballbot

from scipy.spatial.transform import Rotation
from transformations import compute_motor_torques

Expand All @@ -13,7 +12,6 @@
from onshape_robotics_toolkit.models.document import Document
from onshape_robotics_toolkit.robot import Robot, RobotType


HEIGHT = 480
WIDTH = 640

Expand Down Expand Up @@ -174,4 +172,3 @@ def objective(trial):
print(" Params:")
for key, value in study.best_trial.params.items():
print(f" {key}: {value}")

8 changes: 7 additions & 1 deletion onshape_robotics_toolkit/models/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
from scipy.spatial.transform import Rotation
from scipy.spatial.transform import Rotation as R

from onshape_robotics_toolkit.models.geometry import BaseGeometry, BoxGeometry, CylinderGeometry, MeshGeometry, SphereGeometry
from onshape_robotics_toolkit.models.geometry import (
BaseGeometry,
BoxGeometry,
CylinderGeometry,
MeshGeometry,
SphereGeometry,
)
from onshape_robotics_toolkit.utilities import format_number


Expand Down
3 changes: 2 additions & 1 deletion onshape_robotics_toolkit/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,5 +1040,6 @@ def get_robot(

# simulate_robot("test.xml")

# robot = Robot.from_urdf("E:/onshape-robotics-toolkit/playground/20240920_umv_mini/20240920_umv_mini/20240920_umv_mini.urdf")
# robot = Robot.from_urdf("E:/onshape-robotics-toolkit/playground/20240920_umv_mini/"
# "20240920_umv_mini/20240920_umv_mini.urdf")
# robot.save(file_path="E:/onshape-robotics-toolkit/playground/test.urdf", download_assets=False)
58 changes: 57 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "onshape-robotics-toolkit"
version = "0.1.0"
version = "0.1.1"
description = "A python library to facilitate interaction with Onshape's REST API"
authors = ["Senthur Ayyappan <senthurayyappan@gmail.com>"]
repository = "https://github.com/neurobionics/onshape-robotics-toolkit"
Expand Down Expand Up @@ -34,6 +34,7 @@ mypy = "^1.5.1"
pre-commit = "^3.4.0"
tox = "^4.11.1"
pymdown-extensions = "^10.12"
types-lxml = "^2024.12.13"

[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.2"
Expand Down

0 comments on commit d064fd1

Please sign in to comment.