robotics-toolbox-python icon indicating copy to clipboard operation
robotics-toolbox-python copied to clipboard

rne_python in mdh module

Open hanm2019 opened this issue 4 years ago • 2 comments

I find the result is different between rne and rne_python function when I use a MDH module Robot, After review the code, I find two bugs in there, and After update the code, it finally get the same result.

  1. In rne forward, the Rt should dot with all three types of vd corrent code:
vd_ = Rt @ _cross(wd, pstar) + _cross(w, _cross(w, pstar)) + vd

should update to:

vd_ = Rt @ (_cross(wd, pstar) + _cross(w, _cross(w, pstar)) + vd)
  1. In rne backward , the Fm should cross with the center of mass , not the pstar corrent code:
nn_ = (
                        R @ nn
                        + _cross(pstar, R @ f)
                        + _cross(pstar, Fm[:, j])
                        + Nm[:, j]
)

should update to:

nn_ = (
                        R @ nn
                        + _cross(pstar, R @ f)
                        + _cross(r, Fm[:, j])
                        + Nm[:, j]
)

hanm2019 avatar Sep 15 '21 15:09 hanm2019

#266

hanm2019 avatar Sep 15 '21 15:09 hanm2019