<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/13115" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2020-12-01T23:33:35+00:00</updated>

	<author><name><![CDATA[Real-Time Physics Simulation Forum]]></name></author>
	<id>https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/13115</id>

		<entry>
		<author><name><![CDATA[Yougo]]></name></author>
		<updated>2020-12-01T23:33:35+00:00</updated>

		<published>2020-12-01T23:33:35+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43206#p43206</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43206#p43206"/>
		<title type="html"><![CDATA[STL Colision problem]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43206#p43206"><![CDATA[
Hello, <br><br>To put it simple, I have issues when loading a urdf representing a fractal ground linking to a stl. Collisions are not working as I thought they would. The visual representation is fine, but the collisions are not working. <br><br>Here is some pictures :<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1854" class="postimage" alt="Screenshot from 2020-11-27 13-16-40.png" onclick="viewableArea(this);" /></dt></dl></div><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1855" class="postimage" alt="Screenshot from 2020-11-27 13-16-13.png" onclick="viewableArea(this);" /></dt></dl></div>You can clearly see the robot is colliding with something, but it doesn't match the visual representation of my ground, thus we can observe a floating effect.<br><br>Here is the URDF file :<br><div class="codebox"><p>Code: </p><pre><code>&lt;?xml version="1.0" ?&gt;&lt;robot name="plane"&gt;    &lt;link name="planeLink"&gt;        &lt;inertial&gt;            &lt;origin rpy="0 0 0" xyz="0 0 0"/&gt;            &lt;mass value=".0"/&gt;            &lt;inertia ixx="0" ixy="0" ixz="0" iyy="0" iyz="0" izz="0"/&gt;        &lt;/inertial&gt;        &lt;visual&gt;            &lt;origin rpy="0 0 0" xyz="0 0 0"/&gt;            &lt;geometry&gt;                &lt;mesh filename="fractalPlane4.stl" scale="1 1 1"/&gt;            &lt;/geometry&gt;            &lt;material name="white"&gt;                &lt;color rgba="1 1 1 1"/&gt;            &lt;/material&gt;        &lt;/visual&gt;        &lt;collision&gt;            &lt;origin rpy="0 0 0" xyz="0 0 0"/&gt;            &lt;geometry&gt;                &lt;mesh filename="fractalPlane4.stl"/&gt;            &lt;/geometry&gt;        &lt;/collision&gt;    &lt;/link&gt;&lt;/robot&gt;</code></pre></div>and here is the stl file :<br><br><a href="https://gitlab.com/UgoRoux/stl_file" class="postlink">https://gitlab.com/UgoRoux/stl_file</a><br><br>Thanks in advance!<br><br><br><br>EDIT :<br><br>I solved my problem by using createVisualShape and createCollisionShape instead of load URDF.<br>The createCollisionShape can be used with the flag: GEOM_FORCE_CONCAVE_TRIMESH.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13837">Yougo</a> — Tue Dec 01, 2020 11:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
