crisp-python 3.2.0__tar.gz → 3.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. crisp_python-3.3.0/LICENSE.md +21 -0
  2. {crisp_python-3.2.0/crisp_python.egg-info → crisp_python-3.3.0}/PKG-INFO +1 -1
  3. crisp_python-3.3.0/crisp_py/config/robots/ur.yaml +1 -0
  4. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/robot/robot_config.py +36 -2
  5. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/utils/geometry.py +0 -4
  6. {crisp_python-3.2.0 → crisp_python-3.3.0/crisp_python.egg-info}/PKG-INFO +1 -1
  7. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_python.egg-info/SOURCES.txt +1 -0
  8. {crisp_python-3.2.0 → crisp_python-3.3.0}/pyproject.toml +1 -1
  9. crisp_python-3.2.0/LICENSE.md +0 -9
  10. {crisp_python-3.2.0 → crisp_python-3.3.0}/MANIFEST.in +0 -0
  11. {crisp_python-3.2.0 → crisp_python-3.3.0}/README.md +0 -0
  12. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/__init__.py +0 -0
  13. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/camera/__init__.py +0 -0
  14. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/camera/camera.py +0 -0
  15. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/camera/camera_config.py +0 -0
  16. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/__init__.py +0 -0
  17. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/cameras/right_wrist_camera.yaml +0 -0
  18. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/cameras/third_person_camera.yaml +0 -0
  19. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/cameras/wrist_camera.yaml +0 -0
  20. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/control/clipped_cartesian_impedance.yaml +0 -0
  21. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/control/default_cartesian_impedance.yaml +0 -0
  22. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/control/default_operational_space_controller.yaml +0 -0
  23. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/control/gravity_compensation.yaml +0 -0
  24. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/control/gravity_compensation_on_plane.yaml +0 -0
  25. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/control/joint_control.yaml +0 -0
  26. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/control/joint_velocity_control.yaml +0 -0
  27. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/control/no_friction_cartesian_impedance.yaml +0 -0
  28. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/grippers/aloha-gripper.yaml +0 -0
  29. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/grippers/gripper_franka.yaml +0 -0
  30. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/grippers/gripper_left.yaml +0 -0
  31. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/grippers/gripper_left_config.yaml +0 -0
  32. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/grippers/gripper_right.yaml +0 -0
  33. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/grippers/gripper_right_config.yaml +0 -0
  34. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/grippers/gripper_robotiq_2f85.yaml +0 -0
  35. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/grippers/gripper_uncalibrated.yaml +0 -0
  36. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/grippers/gripper_with_trigger.yaml +0 -0
  37. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/grippers/trigger_left.yaml +0 -0
  38. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/path.py +0 -0
  39. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/robots/dynaarm.yaml +0 -0
  40. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/robots/fr3.yaml +0 -0
  41. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/robots/fr3_left.yaml +0 -0
  42. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/robots/fr3_right.yaml +0 -0
  43. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/robots/iiwa14.yaml +0 -0
  44. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/robots/panda.yaml +0 -0
  45. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/sensors/anyskin_sensor.yaml +0 -0
  46. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/sensors/force_torque_sensor.yaml +0 -0
  47. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/config/sensors/mock_force_torque_sensor.yaml +0 -0
  48. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/control/__init__.py +0 -0
  49. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/control/controller_switcher.py +0 -0
  50. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/control/joint_trajectory_controller_client.py +0 -0
  51. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/control/parameters_client.py +0 -0
  52. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/gripper/__init__.py +0 -0
  53. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/gripper/gripper.py +0 -0
  54. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/gripper/gripper_config.py +0 -0
  55. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/robot/__init__.py +0 -0
  56. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/robot/robot.py +0 -0
  57. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/sensors/__init__.py +0 -0
  58. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/sensors/float32_array_sensor.py +0 -0
  59. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/sensors/force_torque_sensor.py +0 -0
  60. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/sensors/sensor.py +0 -0
  61. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/sensors/sensor_config.py +0 -0
  62. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/utils/__init__.py +0 -0
  63. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/utils/callback_monitor.py +0 -0
  64. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/utils/diagnostics_viewer.py +0 -0
  65. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/utils/sliding_buffer.py +0 -0
  66. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_py/utils/tf_pose.py +0 -0
  67. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_python.egg-info/dependency_links.txt +0 -0
  68. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_python.egg-info/requires.txt +0 -0
  69. {crisp_python-3.2.0 → crisp_python-3.3.0}/crisp_python.egg-info/top_level.txt +0 -0
  70. {crisp_python-3.2.0 → crisp_python-3.3.0}/setup.cfg +0 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Learning Systems and Robotics Lab, Technical University of Munich
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crisp-python
3
- Version: 3.2.0
3
+ Version: 3.3.0
4
4
  Summary: Simple python interface to control robots that use crisp_controllers and other ROS2 components.
5
5
  Project-URL: Homepage, https://utiasDSL.github.io/crisp_controllers/
6
6
  Requires-Python: >=3.11
@@ -0,0 +1 @@
1
+ robot_type: "ur"
@@ -291,11 +291,43 @@ class DynaArmConfig(RobotConfig):
291
291
  cartesian_impedance_controller_name: str = "crisp_cartesian_controller"
292
292
 
293
293
 
294
+ @dataclass
295
+ class URConfig(RobotConfig):
296
+ """Configuration specific to Universal Robots (UR) arms.
297
+
298
+ Provides default values for frame names, joint names, and home configuration
299
+ specifically for UR robots.
300
+ """
301
+
302
+ joint_names: list = field(
303
+ default_factory=lambda: [
304
+ "shoulder_pan_joint",
305
+ "shoulder_lift_joint",
306
+ "elbow_joint",
307
+ "wrist_1_joint",
308
+ "wrist_2_joint",
309
+ "wrist_3_joint",
310
+ ]
311
+ )
312
+ home_config: list = field(
313
+ default_factory=lambda: [
314
+ 0,
315
+ -np.pi / 2,
316
+ np.pi / 2,
317
+ -np.pi / 2,
318
+ -np.pi / 2,
319
+ 0,
320
+ ],
321
+ )
322
+ base_frame: str = "base_link"
323
+ target_frame: str = "tool0"
324
+
325
+
294
326
  def make_robot_config(robot_type: str, **kwargs) -> RobotConfig: # noqa: ANN003
295
327
  """Factory function to create robot configuration objects.
296
328
 
297
329
  Args:
298
- robot_type (str): Type of robot ('franka', 'kinova', 'iiwa', 'so101', 'dynaarm')
330
+ robot_type (str): Type of robot ('franka', 'kinova', 'iiwa', 'so101', 'dynaarm', 'ur')
299
331
  **kwargs: Additional keyword arguments to override default configuration
300
332
 
301
333
  Returns:
@@ -318,7 +350,9 @@ def make_robot_config(robot_type: str, **kwargs) -> RobotConfig: # noqa: ANN003
318
350
  return SO101Config(**kwargs)
319
351
  elif robot_type == "dynaarm":
320
352
  return DynaArmConfig(**kwargs)
353
+ elif robot_type == "ur":
354
+ return URConfig(**kwargs)
321
355
  else:
322
356
  raise ValueError(
323
- f"Unsupported robot type: {robot_type}. Supported types: franka, panda, kinova, iiwa, so101, dynaarm"
357
+ f"Unsupported robot type: {robot_type}. Supported types: franka, panda, kinova, iiwa, so101, dynaarm, ur"
324
358
  )
@@ -59,8 +59,6 @@ class Pose:
59
59
  msg.pose.orientation.w,
60
60
  ]
61
61
  )
62
- quat_x_sign = np.sign(quat[0]) if quat[0] != 0 else 1.0
63
- quat *= quat_x_sign # Ensure a consistent quaternion sign
64
62
  orientation = Rotation.from_quat(quat)
65
63
  return cls(position, orientation)
66
64
 
@@ -78,8 +76,6 @@ class Pose:
78
76
  msg.transform.rotation.w,
79
77
  ]
80
78
  )
81
- quat_x_sign = np.sign(quat[0]) if quat[0] != 0 else 1.0
82
- quat *= quat_x_sign # Ensure a consistent quaternion sign
83
79
  orientation = Rotation.from_quat(quat)
84
80
  return cls(position, orientation)
85
81
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crisp-python
3
- Version: 3.2.0
3
+ Version: 3.3.0
4
4
  Summary: Simple python interface to control robots that use crisp_controllers and other ROS2 components.
5
5
  Project-URL: Homepage, https://utiasDSL.github.io/crisp_controllers/
6
6
  Requires-Python: >=3.11
@@ -35,6 +35,7 @@ crisp_py/config/robots/fr3_left.yaml
35
35
  crisp_py/config/robots/fr3_right.yaml
36
36
  crisp_py/config/robots/iiwa14.yaml
37
37
  crisp_py/config/robots/panda.yaml
38
+ crisp_py/config/robots/ur.yaml
38
39
  crisp_py/config/sensors/anyskin_sensor.yaml
39
40
  crisp_py/config/sensors/force_torque_sensor.yaml
40
41
  crisp_py/config/sensors/mock_force_torque_sensor.yaml
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "crisp-python"
3
- version = "3.2.0"
3
+ version = "3.3.0"
4
4
  description = "Simple python interface to control robots that use crisp_controllers and other ROS2 components."
5
5
  readme = "README.md"
6
6
  license-files = ["LICENSE.md"]
@@ -1,9 +0,0 @@
1
- The MIT License
2
-
3
- Copyright 2025 Learning Systems and Robotics Lab
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File without changes
File without changes
File without changes