<?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/12823" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2020-01-23T12:50:19+00:00</updated>

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

		<entry>
		<author><name><![CDATA[simont]]></name></author>
		<updated>2020-01-23T12:50:19+00:00</updated>

		<published>2020-01-23T12:50:19+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42592#p42592</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42592#p42592"/>
		<title type="html"><![CDATA[Re: URDF model falls through the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42592#p42592"><![CDATA[
Now I have still another challenge: The model keeps swinging back and forth. If you are interested, I have opened a new<br>post here: <a href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?f=24&amp;t=12852&amp;p=42591#p42591" class="postlink">viewtopic.php?f=24&amp;t=12852&amp;p=42591#p42591</a><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13481">simont</a> — Thu Jan 23, 2020 12:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simont]]></name></author>
		<updated>2020-01-23T10:38:31+00:00</updated>

		<published>2020-01-23T10:38:31+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42590#p42590</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42590#p42590"/>
		<title type="html"><![CDATA[Re: URDF model falls through the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42590#p42590"><![CDATA[
Hi, I used this script below. This script is working similar as this one: <a href="https://github.com/andreasBihlmaier/pysdf" class="postlink">https://github.com/andreasBihlmaier/pysdf</a> <br><blockquote class="uncited"><div>I'm not sure why your joints aren't working. How exactly did you generate the URDF?</div></blockquote><div class="codebox"><p>Code: </p><pre><code>#!/bin/bashsource catkin_ws/devel/setup.bashif [ ! -d "$2" ]; then  mkdir $2fiend_without_slash() {  str="$1"  i=$((${#str}-1))  last_char="${str:$i:1}"  if [ $last_char == "/" ]; then    echo "${str%?}"  else    echo "$str"  fi}src=$(end_without_slash "$1")esc_src=$(echo "$src" | sed -e 's/[\/&amp;]/\\&amp;/g')dst=$(end_without_slash "$2")esc_dst=$(echo "$dst" | sed -e 's/[\/&amp;]/\\&amp;/g')sdf=$(find "$src" -name "*.sdf")meshes="$src/meshes/CAD/"MESH_WORKSPACE_PATH=$meshes rosrun pysdf sdf2urdf.py "$sdf" "$dst/model.xml" --no-prefixsed -i "s/\(package:\/\/\)$esc_src\/\(meshes\/CAD\)/\1$esc_dst\/\2/g" "$dst/model.xml"cp -r "$src/meshes" "$dst"</code></pre></div>For the transformation I execute this command:<br><br>$ ./sdf_to_urdf &lt;sdf_dir&gt; &lt;urdf_output_dir&gt;<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13481">simont</a> — Thu Jan 23, 2020 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simont]]></name></author>
		<updated>2020-01-23T10:09:07+00:00</updated>

		<published>2020-01-23T10:09:07+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42589#p42589</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42589#p42589"/>
		<title type="html"><![CDATA[Re: URDF model falls through the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42589#p42589"><![CDATA[
Wow, amazing, this is actually working!! Thankyou!<br><blockquote class="uncited"><div>Hi,<br><br>All components within the same URDF model have collision with each other disabled by default. The easiest way to get ground collision is to load the ground plane in as a separate model.<br><div class="codebox"><p>Code: </p><pre><code>import pybullet_datap.setAdditionalSearchPath(pybullet_data.getDataPath())planeID = p.loadURDF("plane.urdf")</code></pre></div></div></blockquote><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13481">simont</a> — Thu Jan 23, 2020 10:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LocknutBushing]]></name></author>
		<updated>2020-01-19T20:52:53+00:00</updated>

		<published>2020-01-19T20:52:53+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42580#p42580</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42580#p42580"/>
		<title type="html"><![CDATA[Re: URDF model falls through the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42580#p42580"><![CDATA[
I'm not sure why your joints aren't working. How exactly did you generate the URDF?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13513">LocknutBushing</a> — Sun Jan 19, 2020 8:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LocknutBushing]]></name></author>
		<updated>2020-01-19T20:44:59+00:00</updated>

		<published>2020-01-19T20:44:59+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42579#p42579</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42579#p42579"/>
		<title type="html"><![CDATA[Re: URDF model falls through the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42579#p42579"><![CDATA[
Hi,<br><br>All components within the same URDF model have collision with each other disabled by default. The easiest way to get ground collision is to load the ground plane in as a separate model.<br><div class="codebox"><p>Code: </p><pre><code>import pybullet_datap.setAdditionalSearchPath(pybullet_data.getDataPath())planeID = p.loadURDF("plane.urdf")</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13513">LocknutBushing</a> — Sun Jan 19, 2020 8:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simont]]></name></author>
		<updated>2020-01-23T10:41:09+00:00</updated>

		<published>2019-12-12T09:48:35+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42532#p42532</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42532#p42532"/>
		<title type="html"><![CDATA[Re: URDF model falls through the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42532#p42532"><![CDATA[
Hi, i have the following progress:<br><br>I put a baseplate (ground) into the model and connected the ground with the base with a fixed joint like you can see below. Now the base part won't fall<br>down, but the other parts still fall down. So it seems like the connections (joints) between the parts are not correct. Any ideas? <br><div class="codebox"><p>Code: </p><pre><code>    &lt;link name="ground"&gt;        &lt;inertial&gt;      &lt;mass value="0.0"/&gt;      &lt;inertia ixx="0.0" ixy="0.0" ixz="0.0" iyy="0.0" iyz="0.0" izz="0.0"/&gt;    &lt;/inertial&gt;    &lt;visual&gt;      &lt;geometry&gt;        &lt;box size="10 10 -0.0001" /&gt;      &lt;/geometry&gt;      &lt;material name="red" /&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;geometry&gt;        &lt;box size="10 10 -0.0001" /&gt;      &lt;/geometry&gt;    &lt;/collision&gt;  &lt;/link&gt;   &lt;joint name="ground_joint" type="fixed"&gt;     &lt;parent link="ground" /&gt;     &lt;child link="Base" /&gt;  &lt;/joint&gt;   </code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13481">simont</a> — Thu Dec 12, 2019 9:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simont]]></name></author>
		<updated>2020-01-23T10:40:34+00:00</updated>

		<published>2019-12-09T08:54:16+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42517#p42517</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42517#p42517"/>
		<title type="html"><![CDATA[URDF model falls through the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42517#p42517"><![CDATA[
Dear all, I have the below URDF file.<br><br>This is a description for a inverse pendelum robot which I want to train in a simulation with AI. When I load this file with pybullet for the training, it falls down through the ground and won't stop falling.<br><br>Has anybody an idea what could be wrong with the URDF file?<br><br>If there are missing some important information please let me know.<br><br>Thanks a lot for your help guys!<br><br>__________________________________________________________<br><br><div class="codebox"><p>Code: </p><pre><code>&lt;?xml version="1.0" ?&gt;&lt;robot name="Cartpole"&gt;  &lt;joint name="Rotation" type="continuous"&gt;    &lt;parent link="Cart"/&gt;    &lt;child link="Shaft"/&gt;    &lt;origin rpy="0  0  0" xyz="0.0215  0.247   0.0435"/&gt;    &lt;axis xyz="1  0  0"/&gt;    &lt;limit effort="0.0" lower="0.0" upper="0.0" velocity="0.0"/&gt;  &lt;/joint&gt;  &lt;joint name="Cart_joint" type="prismatic"&gt;    &lt;parent link="Base"/&gt;    &lt;child link="Cart"/&gt;    &lt;origin rpy="0  0  0" xyz="-0.04147 -0.31058  0.22851"/&gt;    &lt;axis xyz="0 -1  0"/&gt;    &lt;limit effort="0.0" lower="-0.23555" upper="0.23555" velocity="0.0"/&gt;  &lt;/joint&gt;  &lt;joint name="Pole_Shaft" type="fixed"&gt;    &lt;parent link="Shaft"/&gt;    &lt;child link="Pole"/&gt;    &lt;origin rpy="0  0  0" xyz="0.0193  0      0.007"/&gt;    &lt;axis xyz="0  0  0"/&gt;    &lt;limit effort="0" lower="0" upper="0" velocity="0"/&gt;  &lt;/joint&gt;  &lt;link name="Cart"&gt;    &lt;inertial&gt;      &lt;mass value="0.4494280957660571"/&gt;      &lt;origin rpy="0  0  0" xyz="0  0  0"/&gt;      &lt;inertia ixx="0.034344216689805106" ixy="-0.0013555840592494157" ixz="0.005746023053830929" iyy="0.033575305370647346" iyz="0.007655119926892856" izz="0.0029338994617400297"/&gt;    &lt;/inertial&gt;    &lt;collision name="Cart_collision"&gt;      &lt;origin rpy="0  0  0" xyz="-0.00606  0.24716  0.03996"/&gt;      &lt;geometry&gt;        &lt;mesh filename="package:///home/agent-pipeline/cad-assets/urdf_cadassets/meshes/CAD/Cart.stl" scale="0.001 0.001 0.001"/&gt;      &lt;/geometry&gt;    &lt;/collision&gt;    &lt;visual name="Cart_visual"&gt;      &lt;origin rpy="0  0  0" xyz="-0.00606  0.24716  0.03996"/&gt;      &lt;geometry&gt;        &lt;mesh filename="package:///home/agent-pipeline/cad-assets/urdf_cadassets/meshes/CAD/Cart.stl" scale="0.001 0.001 0.001"/&gt;      &lt;/geometry&gt;    &lt;/visual&gt;  &lt;/link&gt;  &lt;link name="Shaft"&gt;    &lt;inertial&gt;      &lt;mass value="0.024209988665072436"/&gt;      &lt;origin rpy="0  0  0" xyz="0  0  0"/&gt;      &lt;inertia ixx="0.00188987952436807" ixy="-1.1706804306416182e-05" ixz="5.008066577766269e-05" iyy="0.0017943029340322224" iyz="0.0004187314228447953" izz="0.00010090272031144335"/&gt;    &lt;/inertial&gt;    &lt;collision name="Shaft_collision"&gt;      &lt;origin rpy="0  0  0" xyz="0.01237  0       0"/&gt;      &lt;geometry&gt;        &lt;mesh filename="package:///home/agent-pipeline/cad-assets/urdf_cadassets/meshes/CAD/Shaft.stl" scale="0.001 0.001 0.001"/&gt;      &lt;/geometry&gt;    &lt;/collision&gt;    &lt;visual name="Shaft_visual"&gt;      &lt;origin rpy="0  0  0" xyz="0.01237  0       0"/&gt;      &lt;geometry&gt;        &lt;mesh filename="package:///home/agent-pipeline/cad-assets/urdf_cadassets/meshes/CAD/Shaft.stl" scale="0.001 0.001 0.001"/&gt;      &lt;/geometry&gt;    &lt;/visual&gt;  &lt;/link&gt;  &lt;link name="Pole"&gt;    &lt;inertial&gt;      &lt;mass value="0.01797430178868597"/&gt;      &lt;origin rpy="0  0  0" xyz="0  0  0"/&gt;      &lt;inertia ixx="0.0008366739796019355" ixy="-7.689518680322801e-07" ixz="2.477907732299824e-06" iyy="0.0007640110742674137" iyz="0.0002341786839091567" izz="7.299569596665657e-05"/&gt;    &lt;/inertial&gt;    &lt;collision name="Pole_collision"&gt;      &lt;origin rpy="0  0  0" xyz="0       0      -0.07411"/&gt;      &lt;geometry&gt;        &lt;mesh filename="package:///home/agent-pipeline/cad-assets/urdf_cadassets/meshes/CAD/Pole.stl" scale="0.001 0.001 0.001"/&gt;      &lt;/geometry&gt;    &lt;/collision&gt;    &lt;visual name="Pole_visual"&gt;      &lt;origin rpy="0  0  0" xyz="0       0      -0.07411"/&gt;      &lt;geometry&gt;        &lt;mesh filename="package:///home/agent-pipeline/cad-assets/urdf_cadassets/meshes/CAD/Pole.stl" scale="0.001 0.001 0.001"/&gt;      &lt;/geometry&gt;    &lt;/visual&gt;  &lt;/link&gt;  &lt;link name="Base"&gt;    &lt;inertial&gt;      &lt;mass value="2.5459113603106216"/&gt;      &lt;origin rpy="0  0  0" xyz="0  0  0"/&gt;      &lt;inertia ixx="0.5882136684497374" ixy="-0.02906460593367471" ixz="0.0501787117673072" iyy="0.14479915583911276" iyz="0.07620661469781886" izz="0.5291431708702397"/&gt;    &lt;/inertial&gt;    &lt;collision name="Base_collision"&gt;      &lt;origin rpy="0  0  0" xyz="-0.10471 -0.14784  0.19902"/&gt;      &lt;geometry&gt;        &lt;mesh filename="package:///home/agent-pipeline/cad-assets/urdf_cadassets/meshes/CAD/Base.stl" scale="0.001 0.001 0.001"/&gt;      &lt;/geometry&gt;    &lt;/collision&gt;    &lt;visual name="Base_visual"&gt;      &lt;origin rpy="0  0  0" xyz="-0.10471 -0.14784  0.19902"/&gt;      &lt;geometry&gt;        &lt;mesh filename="package:///home/agent-pipeline/cad-assets/urdf_cadassets/meshes/CAD/Base.stl" scale="0.001 0.001 0.001"/&gt;      &lt;/geometry&gt;    &lt;/visual&gt;  &lt;/link&gt;&lt;/robot&gt; </code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13481">simont</a> — Mon Dec 09, 2019 8:54 am</p><hr />
]]></content>
	</entry>
	</feed>
