8000 Added joint angle · navrobot/robotics-toolbox-python@d63e587 · GitHub
[go: up one dir, main page]

Skip to content

Commit d63e587

Browse files
committed
Added joint angle
1 parent ca0c5ed commit d63e587

File tree

Collapse file tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rtb/robot/ets.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def __init__(
5858
# Number of joints in the robot
5959
self._n = len(self._q_idx)
6060

61+
# Current joint angles of the robot
62+
self._q = np.zeros((self._n,))
63+
6164
@classmethod
6265
def dh_to_ets(cls, robot):
6366
"""
@@ -119,6 +122,10 @@ def dh_to_ets(cls, robot):
119122
robot.base,
120123
robot.tool)
121124

125+
@property
126+
def q(self):
127+
return self._q
128+
122129
@property
123130
def name(self):
124131
return self._name

0 commit comments

Comments
 (0)
0