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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2022-05-31T02:13:03+00:00</updated>

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

		<entry>
		<author><name><![CDATA[orange_juice]]></name></author>
		<updated>2022-05-31T02:13:03+00:00</updated>

		<published>2022-05-31T02:13:03+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44028#p44028</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44028#p44028"/>
		<title type="html"><![CDATA[Re: Applying torque control makes object fly away from the secene]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44028#p44028"><![CDATA[
Hi, I met the same problem. But changing time steps didn't help. Did you solved this problem?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14342">orange_juice</a> — Tue May 31, 2022 2:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m_kramar]]></name></author>
		<updated>2020-05-23T01:21:35+00:00</updated>

		<published>2020-05-23T01:21:35+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42872#p42872</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42872#p42872"/>
		<title type="html"><![CDATA[Applying torque control makes object fly away from the secene]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42872#p42872"><![CDATA[
So I grabbed latest code from <a href="https://github.com/bulletphysics/pybullet_robots" class="postlink">https://github.com/bulletphysics/pybullet_robots</a><br>I modified laikago.py example to the following, I'm only controlling one joint using torque<br>Strangely enough poor robot flies away from the scene!<br>There are two ways to fix it: either decrease simulation time step (line 10) or change torque value to 60 (line 33).<br>Any ideas what am I doing wrong?<br><br><img src="https://user-images.githubusercontent.com/54096564/82638552-756fde00-9c4a-11ea-82cf-f2b636038ab8.gif" class="postimage" alt="Image"><br><div class="codebox"><p>Code: </p><pre><code>import pybullet as pimport timeimport osos.chdir(os.path.dirname(os.path.abspath(__file__)))p.connect(p.GUI)plane = p.loadURDF("data/plane.urdf")p.setGravity(0,0,-9.8)timeStep = 1./300 # HERE!!! changing it to 1./400 fixes the problemp.setTimeStep(timeStep)urdfFlags = p.URDF_USE_SELF_COLLISIONquadruped = p.loadURDF("laikago/laikago_toes.urdf",[0,0,.5],[0,0.5,0.5,0], flags = urdfFlags,useFixedBase=False)#enable collision between lower legs (2,5,8 and 11)lower_legs = [2,5,8,11]for l0 in lower_legs:for l1 in lower_legs:if (l1&gt;l0):p.setCollisionFilterPair(quadruped, quadruped, l0, l1, 1)#set dampingfor j in range (p.getNumJoints(quadruped)):p.changeDynamics(quadruped, j, linearDamping=0, angularDamping=100)p.setJointMotorControl2(quadruped, j, p.VELOCITY_CONTROL, force=0)#run the simulationp.setRealTimeSimulation(0)for i in range (1000):p.setJointMotorControl2(quadruped, 13, p.TORQUE_CONTROL, force=62) # HERE!!! changing it to force=60 fixes the problemp.stepSimulation()time.sleep(timeStep)</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13640">m_kramar</a> — Sat May 23, 2020 1:21 am</p><hr />
]]></content>
	</entry>
	</feed>
