Skip to content

Commit c5ac217

Browse files
committed
Remove unused imports
1 parent 4b0c9dc commit c5ac217

File tree

1 file changed

+19
-40
lines changed

1 file changed

+19
-40
lines changed

roboticstoolbox/robot/RobotProto.py

Lines changed: 19 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,74 @@
1-
import numpy as np
21
from roboticstoolbox.tools.types import ArrayLike, NDArray
3-
4-
from typing import Any, Callable, Generic, List, Set, TypeVar, Union, Dict, Tuple, Type
2+
from typing import Any, Callable, List, Union, Dict
53
from typing_extensions import Protocol, Self
64

75
from roboticstoolbox.robot.Link import Link, BaseLink
86
from roboticstoolbox.robot.Gripper import Gripper
97
from roboticstoolbox.robot.ETS import ETS
108
from spatialmath import SE3
11-
import roboticstoolbox as rtb
129

1310

1411
class KinematicsProtocol(Protocol):
1512
@property
16-
def _T(self) -> NDArray:
17-
...
13+
def _T(self) -> NDArray: ...
1814

1915
def ets(
2016
self,
2117
start: Union[Link, Gripper, str, None] = None,
2218
end: Union[Link, Gripper, str, None] = None,
23-
) -> ETS:
24-
...
19+
) -> ETS: ...
2520

2621

2722
class RobotProto(Protocol):
2823
@property
29-
def links(self) -> List[BaseLink]:
30-
...
24+
def links(self) -> List[BaseLink]: ...
3125

3226
@property
33-
def n(self) -> int:
34-
...
27+
def n(self) -> int: ...
3528

3629
@property
37-
def q(self) -> NDArray:
38-
...
30+
def q(self) -> NDArray: ...
3931

4032
@property
41-
def name(self) -> str:
42-
...
33+
def name(self) -> str: ...
4334

4435
@name.setter
45-
def name(self, new_name: str):
46-
...
36+
def name(self, new_name: str): ...
4737

4838
@property
49-
def gravity(self) -> NDArray:
50-
...
39+
def gravity(self) -> NDArray: ...
5140

52-
def dynchanged(self):
53-
...
41+
def dynchanged(self): ...
5442

5543
def jacobe(
5644
self,
5745
q: ArrayLike,
5846
end: Union[str, BaseLink, Gripper, None] = None,
5947
start: Union[str, BaseLink, Gripper, None] = None,
6048
tool: Union[NDArray, SE3, None] = None,
61-
) -> NDArray:
62-
...
49+
) -> NDArray: ...
6350

6451
def jacob0(
6552
self,
6653
q: ArrayLike,
6754
end: Union[str, BaseLink, Gripper, None] = None,
6855
start: Union[str, BaseLink, Gripper, None] = None,
6956
tool: Union[NDArray, SE3, None] = None,
70-
) -> NDArray:
71-
...
57+
) -> NDArray: ...
7258

73-
def copy(self) -> Self:
74-
...
59+
def copy(self) -> Self: ...
7560

76-
def accel(self, q, qd, torque, gravity=None) -> NDArray:
77-
...
61+
def accel(self, q, qd, torque, gravity=None) -> NDArray: ...
7862

79-
def nofriction(self, coulomb: bool, viscous: bool) -> Self:
80-
...
63+
def nofriction(self, coulomb: bool, viscous: bool) -> Self: ...
8164

8265
def _fdyn(
8366
self,
8467
t: float,
8568
x: NDArray,
8669
torqfun: Callable[[Any], NDArray],
8770
targs: Dict,
88-
) -> NDArray:
89-
...
71+
) -> NDArray: ...
9072

9173
def rne(
9274
self,
@@ -95,19 +77,16 @@ def rne(
9577
qdd: NDArray,
9678
symbolic: bool = False,
9779
gravity: Union[None, ArrayLike] = None,
98-
) -> NDArray:
99-
...
80+
) -> NDArray: ...
10081

10182
def gravload(
10283
self, q: Union[None, ArrayLike] = None, gravity: Union[None, ArrayLike] = None
103-
):
104-
...
84+
): ...
10585

10686
def pay(
10787
self,
10888
W: ArrayLike,
10989
q: Union[NDArray, None] = None,
11090
J: Union[NDArray, None] = None,
11191
frame: int = 1,
112-
):
113-
...
92+
): ...

0 commit comments

Comments
 (0)