Inconsistency between rayTest and rayTestBatch of pybullet #3682
HiroIshida
started this conversation in
General
Replies: 1 comment
-
from the function name pybullet_rayTestObsolete the rayTest should be obsolete, we should use the rayTestBatch instead. i also check the code that rayTestBatch adds some new parameters but don't be initialized in the old function. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I found the case when rayTest and rayTestBatch yield inconsistent results. There is an example code performing batch ray cast toward r2d2. Based on that, I modified code to test the results of
rayTest
andrayTestBatch
are consistent. I conducted the test also forsphere_small
,sphere2
,block
, andhumanoid
as well asr2d2
. (note that all these data is provided inpybullet_data
, so one can just run the following code if has pybullet.) The script below does that..As a result, we get
lst_consistensy = [true, true, true, false, false]
. Here I check the consistency by comparing number of collision ray of the both methods. The result is strange, because for all urdf-models composed of single object, we can observe the consistency. However for those composed of multiple links, we cannot.My environment is Ubuntu16.04, and tested python3.7.7 after building from source at fa21872.
Beta Was this translation helpful? Give feedback.
All reactions