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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2019-07-29T08:06:18+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Enigma123]]></name></author>
		<updated>2019-07-29T08:06:18+00:00</updated>

		<published>2019-07-29T08:06:18+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42290#p42290</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42290#p42290"/>
		<title type="html"><![CDATA[Torque control]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42290#p42290"><![CDATA[
When I use my control algorithm to calculate motor torque and provide it to motor by using setJointMotorControl2,<br>I should get the same applied torque from getJointState after stepping the next simulation but it is not.The code seems like<br>while 1:<br>           torque = controlAlgorithm(args)<br>           setJointMotorControl2(robotId, jointId, TORQUE_CONTROL, force = torque)<br>           stepSimulation()<br>           appliedTorque = getJointState(robotId, jointId)[3]<br><br>torque == appliedTorque(False)<br><br>But when I provide constant torque like torque = 1 and leave the other code unchanged, appliedTorque equals torque.<br>What's the problem?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13363">Enigma123</a> — Mon Jul 29, 2019 8:06 am</p><hr />
]]></content>
	</entry>
	</feed>
