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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2020-02-21T20:59:17+00:00</updated>

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

		<entry>
		<author><name><![CDATA[bullet_team]]></name></author>
		<updated>2020-02-21T20:59:17+00:00</updated>

		<published>2020-02-21T20:59:17+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42633#p42633</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42633#p42633"/>
		<title type="html"><![CDATA[Re: Model keeps swinging back and forth and is not fixed to the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42633#p42633"><![CDATA[
You should fix the base, using the 'useFixedBase=True' option in pybullet.loadURDF<br>Alternatively, set the mass of the first (base) link to zero. <br><br>See also the PyBullet quickstart guide for more info in general.<br><a href="https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA/edit#heading=h.2ye70wns7io3" class="postlink">https://docs.google.com/document/d/10sX ... e70wns7io3</a><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=10522">bullet_team</a> — Fri Feb 21, 2020 8:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LocknutBushing]]></name></author>
		<updated>2020-02-06T05:03:42+00:00</updated>

		<published>2020-02-06T05:03:42+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42614#p42614</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42614#p42614"/>
		<title type="html"><![CDATA[Re: Model keeps swinging back and forth and is not fixed to the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42614#p42614"><![CDATA[
I'm glad you solved it, although I'm puzzled as to why that worked.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13513">LocknutBushing</a> — Thu Feb 06, 2020 5:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simont]]></name></author>
		<updated>2020-02-05T11:17:49+00:00</updated>

		<published>2020-02-05T11:17:49+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42612#p42612</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42612#p42612"/>
		<title type="html"><![CDATA[Re: Model keeps swinging back and forth and is not fixed to the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42612#p42612"><![CDATA[
Hi I have fixed it <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink">  I added another ground plane on my own directly into the urdf file by adding another link (the ground) and a joint<br>between this link and the base of my model like below. Pay attention that I used the Base link from my model as the parent and the ground<br>as child, instead of doing it the other way around as one would normally do.  <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="Base" /&gt;     &lt;child link="ground" /&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> — Wed Feb 05, 2020 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simont]]></name></author>
		<updated>2020-01-29T09:05:34+00:00</updated>

		<published>2020-01-29T09:05:34+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42600#p42600</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42600#p42600"/>
		<title type="html"><![CDATA[Re: Model keeps swinging back and forth and is not fixed to the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42600#p42600"><![CDATA[
Hi, yeah sorry you are right, it is confusing terminology. And yes, I mean the base of the pendulum is shaking.<br>So here is the original code:<div class="codebox"><p>Code: </p><pre><code> self.model = p.loadURDF(filename, flags=p.URDF_USE_SELF_COLLISION) </code></pre></div>So I tried this one, but it would not change anything so far. Any idea?<br><div class="codebox"><p>Code: </p><pre><code> self.model = p.loadURDF(filename, flags=p.URDF_USE_SELF_COLLISION, useFixedBase=1) </code></pre></div> <br><blockquote class="uncited"><div>I'm not entirely sure what you mean by swinging back and forth, that's especially confusing terminology when you're already talking about a pendulum. But if you mean the base of the pendulum is shaking, you can make it fixed in place easily:<br><div class="codebox"><p>Code: </p><pre><code>robot = p.loadURDF("[insert urdf path here]", useFixedBase=1)</code></pre></div>This fixes the base component of the URDF model.</div></blockquote><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13481">simont</a> — Wed Jan 29, 2020 9:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LocknutBushing]]></name></author>
		<updated>2020-01-26T04:47:55+00:00</updated>

		<published>2020-01-26T04:47:55+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42594#p42594</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42594#p42594"/>
		<title type="html"><![CDATA[Re: Model keeps swinging back and forth and is not fixed to the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42594#p42594"><![CDATA[
I'm not entirely sure what you mean by swinging back and forth, that's especially confusing terminology when you're already talking about a pendulum. But if you mean the base of the pendulum is shaking, you can make it fixed in place easily:<br><div class="codebox"><p>Code: </p><pre><code>robot = p.loadURDF("[insert urdf path here]", useFixedBase=1)</code></pre></div>This fixes the base component of the URDF model.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13513">LocknutBushing</a> — Sun Jan 26, 2020 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simont]]></name></author>
		<updated>2020-01-23T12:47:01+00:00</updated>

		<published>2020-01-23T12:47:01+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42591#p42591</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42591#p42591"/>
		<title type="html"><![CDATA[Model keeps swinging back and forth and is not fixed to the ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42591#p42591"><![CDATA[
Hi,<br>I have the inverted pendulum modell below and it should be trained with reinforcement learning in pybullet.<br>The problem now ist, that it doesn't stand still but it swings back and forth. Does anybody of you have an idea<br>what could be the reason or how I could fix the model to the ground? <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/simon_tiessen/sim-to-real-ai/example_robots/urdf_cartpole/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/simon_tiessen/sim-to-real-ai/example_robots/urdf_cartpole/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/simon_tiessen/sim-to-real-ai/example_robots/urdf_cartpole/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/simon_tiessen/sim-to-real-ai/example_robots/urdf_cartpole/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/simon_tiessen/sim-to-real-ai/example_robots/urdf_cartpole/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/simon_tiessen/sim-to-real-ai/example_robots/urdf_cartpole/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="222222.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/simon_tiessen/sim-to-real-ai/example_robots/urdf_cartpole/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/simon_tiessen/sim-to-real-ai/example_robots/urdf_cartpole/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><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1779" class="postimage" alt="pendelum.png" onclick="viewableArea(this);" /></dt></dl><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:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
