File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
roboticstoolbox/tools/urdf Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 16
16
ArrayLike3 ,
17
17
getvector ,
18
18
unitvec ,
19
- unitvec_norm ,
20
- angvec2r ,
21
- tr2rpy ,
22
19
)
23
20
24
21
from io import BytesIO
@@ -1950,11 +1947,12 @@ def _recursive_axis_definition(
1950
1947
SE3 resulting from the axis orientation of the parent joint
1951
1948
"""
1952
1949
if parentname is None :
1953
- base_link_exists = "base_link" in [j .name for j in self .elinks ]
1954
- if base_link_exists :
1955
- parentname = "base_link"
1956
- else :
1957
- parentname = self .elinks [0 ].name
1950
+ # starts again with all orphan links
1951
+ for link in self .elinks :
1952
+ if link .parent is None :
1953
+ self ._recursive_axis_definition (
1954
+ parentname = link .name , parent_from_Rx_to_axis = None
1955
+ )
1958
1956
if parent_from_Rx_to_axis is None :
1959
1957
parent_from_Rx_to_axis = SE3 ()
1960
1958
You can’t perform that action at this time.
0 commit comments