pydmps icon indicating copy to clipboard operation
pydmps copied to clipboard

Question about the some parts of the code

Open TFLQW opened this issue 7 years ago • 1 comments

1:In the file of dmp.py. in the def step() : self.ddy[d] = (self.az[d] * (self.bz[d] * (self.goal[d] - self.y[d]) - self.dy[d] / tau) + f) * tau in the paper of Ijspeert(2013) the formula is τy¨ = αz(βz(g − y) − y˙) + f , a little different from your formula,i did not understand your formula

2: in the file of dmp_discrete.py why the h of psi is defined as self.h = np.ones(self.n_bfs) * self.n_bfs**1.5 / self.c /self.cs.ax.

3: in the file of dmp.py in the def imitate_path(): f_target[:, d] = (ddy_des[d] - self.ay[d] * (self.by[d] * (self.goal[d]- y_des[d]) - dy_des[d])) without the item of tau.

4:after change the timesteps and runtime of data the result can't follow the original data

TFLQW avatar Oct 14 '18 02:10 TFLQW

Hello! Sorry I missed this. I recently reworked the code on a separate comment which addresses 1. So hopefully that one is cleared up! For 2, I just played around with values for h until I found that generally worked well in a few different situations. For 3, correct, tau is not included when generating weights to imitate a path. For 4, can you provide a minimum working example of what you mean?

studywolf avatar Jan 11 '20 21:01 studywolf