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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2021-01-18T11:06:05+00:00</updated>

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

		<entry>
		<author><name><![CDATA[lehnertu]]></name></author>
		<updated>2021-01-18T11:06:05+00:00</updated>

		<published>2021-01-18T11:06:05+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43255#p43255</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43255#p43255"/>
		<title type="html"><![CDATA[Physics error for wheel with TORQUE_CONTROL]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43255#p43255"><![CDATA[
I'm trying to simulate a robot balancing on two wheels.<br>I want to use TORQUE_CONTROL for driving the wheels, because the torque is what I set when<br>setting the PWM on a real motor controller. I was able to do a control loop that stabilizes my robot.<br><br>But the final state does not capture the correct physics. The robot is standing at a fixed place<br>leaning to one side and applies torque to its wheels to counteract the gravity force that wants to tip it over.<br>The wheels are spinning so the friction between the wheels and the plane just balances the torque.<br>This should never be a stationary state! The robot must accelerate to the side - it doesn't !<br>It stands still leaning 5 degrees to one side!<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1861" class="postimage" alt="pybullet_error.png" onclick="viewableArea(this);" /></dt></dl></div><br>Interestingly, it works with VELOCITY_CONTROL, only the toque jumps all over the place.<br><br>The URDF snippet descibes one wheel:<div class="codebox"><p>Code: </p><pre><code>  &lt;link name="right_wheel"&gt;    &lt;visual&gt;      &lt;geometry&gt;        &lt;cylinder length="1.0" radius="3.5"/&gt;      &lt;/geometry&gt;      &lt;origin rpy="0 1.57 0" xyz="0 0 0"/&gt;      &lt;material name="red"/&gt;      &lt;origin rpy="0 0 0" xyz="0 0 0"/&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;geometry&gt;        &lt;cylinder length="1.0" radius="3.5"/&gt;      &lt;/geometry&gt;      &lt;origin rpy="0 1.57 0" xyz="0 0 0"/&gt;    &lt;/collision&gt;    &lt;contact&gt;      &lt;lateral_friction value="0.5"/&gt;      &lt;rolling_friction value="0.01"/&gt;      &lt;stiffness value="100000"/&gt;      &lt;damping value="3000"/&gt;    &lt;/contact&gt;  &lt;/link&gt;</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13879">lehnertu</a> — Mon Jan 18, 2021 11:06 am</p><hr />
]]></content>
	</entry>
	</feed>
