#!/usr/bin/env python
import numpy as np
from roboticstoolbox.models.URDF.URDFRobot import URDFRobot
[docs]
class wx250(URDFRobot):
"""
Class that imports a WX250 URDF model
``wx250()`` is a class which imports an Interbotix wx250 robot definition
from a URDF file. The model describes its kinematic and graphical
characteristics.
.. runblock:: pycon
>>> import roboticstoolbox as rtb
>>> robot = rtb.models.URDF.wx250()
>>> print(robot)
Defined joint configurations are:
- qz, zero joint angle configuration, 'L' shaped configuration
- qr, vertical 'READY' configuration
:reference:
- https://docs.trossenrobotics.com/interbotix_xsarms_docs/specifications/wx250.html
.. codeauthor:: Jesse Haviland
.. sectionauthor:: Peter Corke
"""
def __init__(self):
super().__init__(
"trossen_descriptions/urdf/wx250.urdf.xacro", manufacturer="Interbotix"
)
self.qr = np.array([0, -0.3, 0, -2.2, 0, 2.0, np.pi / 4, 0])
self.qz = np.zeros(8)
self.addconfiguration("qr", self.qr)
self.addconfiguration("qz", self.qz)
if __name__ == "__main__": # pragma nocover
robot = wx250()
print(robot)