-
Notifications
You must be signed in to change notification settings - Fork 56
Add :make-joint-min-max-table method #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
the problem of original implementation is that it uses hash-table and when we dump hash table, then it will not able to load again. see hrp2-simple-dump-file in rbrian/wrl2eus |
I think this part corresponds not to rbrain/wrl2eus.l but to rbrain/basicmodel.l code I remember that gensym value is a problem, Dumping joint-min-max-table and loading worked on rbrain/basicmoel.l and
(However, I think lisp::deleted seems to be gensym?) After this commit, I'll send PRs for:
Just for reference, it takes 1.5-1.9[s] to calculate all min-max tables currently and |
I added this commit to this PR. Without this commit, gethash returns (list nil nil) by invalid hash key.
For example, if "joint-min-max-target"'s joint-angle 100[deg] exceeds range of joint-angle [-90, 90][deg], gethash returns (list nil nil). So I should limit joint-min-max-targe's joint-angle by hash key range. In this commit,
This solution works on rbrain/basicmodel.l, but I think this solution is not so smart. |
I'm not sure if I can understand correctly, but
|
Yes, this is preferable than "joint-min-max-target-[min/max]-angle". Adding hardware min/max angle is possible solution [1],
It is not sufficient to check existence of hash key.
I think this might be better than using hash table. I'll try fix my PR by
and
[1] #74 |
…;; use org-min/max-angle according to discussion on euslisp#77
I fixed PR.
I added org-min-angle and org-max-angle.
I use assoc list instead of hash table. |
Travis passed and I reflected the following discussion:
Can I merge this? |
Sorry that my comment on 1)2)3) did not mean that we have to consider all condition, just an idea of another possibility of three different( or mixed) direction sorry that i always not easy to merge the PR but since we created the irteus is because euslib becomes too large and complex, if we just copy existing code/function form euslisb to irteus, then irteus become just another euslib and we'll have to create irteus2, so I'd like to be very careful on adding new features. |
Btw how did euslib checks angle limit for min-max angle? |
I'm using original min/max angle for some codes .. etc.
Yes, as you said,
To do this,
euslib codes checks angle limit by using plist.
I completely agree with your opinion. Min-max table is important feature in euslib codes. |
is it possible to merge this PR? |
no, @snozawa said there are redundant codes within commit |
This is just my guess. Please confirm ;
2014年6月10日火曜日、Shunichi Nozawanotifications@github.comさんは書きました:
|
…n collision check and update test codes
I upgraded this PR codes. I reduced codes and checked these points:
|
31645ce
to
6cf0908
Compare
Why do we still this PR not to be merged? |
Add :make-joint-min-max-table method
So, now min-max table is supported? |
Add :make-joint-min-max-table method by copying and reducing codes from rbrain/basicmodel.l.
Add require of :pqp because irtmodel.l uses pqp resources.