Skip to content

Commit eb004ce

Browse files
committed
add degrees option to ERobot.fkine
1 parent 961f1a8 commit eb004ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roboticstoolbox/robot/ERobot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ def URDF_read(file_path, tld=None):
11511151
# --------------------------------------------------------------------- #
11521152

11531153
def fkine(
1154-
self, q, end=None, start=None, tool=None,
1154+
self, q, unit='rad', end=None, start=None, tool=None,
11551155
include_base=True, fast=False):
11561156
'''
11571157
Forward kinematics
@@ -1213,6 +1213,8 @@ def fkine(
12131213
# we work with NumPy arrays not SE2/3 classes for speed
12141214
q = getmatrix(q, (None, self.n))
12151215

1216+
q = self.toradians(q)
1217+
12161218
end, start, etool = self._get_limit_links(end, start)
12171219

12181220
if etool is not None and tool is not None:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy