Hello, I am new to pybullet. So, I am planning to perform several raytest on an object. For the sake of clarity, I would like you to see the image below.
(if you cannot see the image, pls click the link as follow, https://imgur.com/k3qRtj0)
The purple lines are the visualization of the rays, I would like to know which ray hits the object. And the ray that hits the object is visualized as a white line. As you can see, the ray with white line is the ray that does not intersect with the object. Is there any accuracy problem with raytest in pybullet? Or does it have something to do with my laptop that does not have gpu?
Thank you for your help.
Inaccurate RayTest in Pybullet
-
- Posts: 2
- Joined: Sun Oct 20, 2019 2:17 pm
Re: Inaccurate RayTest in Pybullet
Is it because the collision shape is convex hull? If that's the case then, it explains why I got such results.
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Inaccurate RayTest in Pybullet
Yes, by default we use convex hulls. Best to create a convex decomposition for moving objects (using VHACD, there are utils from obj -> vhacd).
See this example:
https://github.com/bulletphysics/bullet ... vhacd.urdf
For concave static trangle meshes, you can mark them as 'concave'.
See samurai.urdf for an example https://github.com/bulletphysics/bullet ... ai.urdf#L3
See this example:
https://github.com/bulletphysics/bullet ... vhacd.urdf
For concave static trangle meshes, you can mark them as 'concave'.
See samurai.urdf for an example https://github.com/bulletphysics/bullet ... ai.urdf#L3