File tree 1 file changed +12
-7
lines changed
1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -1762,10 +1762,6 @@ def rne(
1762
1762
else :
1763
1763
Q = np .empty ((l , n )) # joint torque/force
1764
1764
1765
- qn = np .empty ((l , n ))
1766
- qdn = np .empty ((l , n ))
1767
- qddn = np .empty ((l , n ))
1768
-
1769
1765
link_groups : List [List [int ]] = []
1770
1766
1771
1767
# Group links together based on whether they are joints or not
@@ -1820,14 +1816,23 @@ def rne(
1820
1816
vJ = SpatialVelocity (s [j ] * qdk [jindex ])
1821
1817
1822
1818
# transform from parent(j) to j
1823
- Xup_int = SE3 ()
1819
+ # Xup_int = SE3()
1820
+ first_element = True
1824
1821
for idx in group :
1825
1822
link = self .links [idx ]
1826
1823
1827
1824
if link .isjoint and link .jindex is not None :
1828
- Xup_int = Xup_int * SE3 (link .A (qk [link .jindex ]))
1825
+ if first_element :
1826
+ Xup_int = SE3 (link .A (qk [link .jindex ]))
1827
+ first_element = False
1828
+ else :
1829
+ Xup_int = Xup_int * SE3 (link .A (qk [link .jindex ]))
1829
1830
else :
1830
- Xup_int = Xup_int * SE3 (link .A ())
1831
+ if first_element :
1832
+ Xup_int = SE3 (link .A ())
1833
+ first_element = False
1834
+ else :
1835
+ Xup_int = Xup_int * SE3 (link .A ())
1831
1836
1832
1837
Xup [j ] = Xup_int .inv ()
1833
1838
You can’t perform that action at this time.
0 commit comments