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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2019-04-15T06:05:14+00:00</updated>

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

		<entry>
		<author><name><![CDATA[pierre_wueth]]></name></author>
		<updated>2019-04-15T06:05:14+00:00</updated>

		<published>2019-04-15T06:05:14+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42016#p42016</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42016#p42016"/>
		<title type="html"><![CDATA[Re: Manipulating Kuka-robot joint using Torque-control]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42016#p42016"><![CDATA[
Hi Erwin,<br><br>Thank you very much for your insightful response and adding a note in the guide!<br><br>Your advice on how to create joint friction is really helpful as well, I was looking for a way to simulate such joint dynamics.  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>Thanks again and best regards,<br>Pierre<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13256">pierre_wueth</a> — Mon Apr 15, 2019 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2019-04-12T01:33:19+00:00</updated>

		<published>2019-04-12T01:33:19+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41997#p41997</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41997#p41997"/>
		<title type="html"><![CDATA[Re: Manipulating Kuka-robot joint using Torque-control]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41997#p41997"><![CDATA[
You need to first unlock/disable the default velocity/position motor:<br><br>pybullet.setJointMotorControl2(objUid, linkIndex, p.VELOCITY_CONTROL, force=0)<br><br>Otherwise, your force/torque has to exceed the default motor.<br><br>Instead of using 0, you can also use a very small force limit, to mimic joint friction.<br><br>I added a note in the setJointMotorControl2/Array section of the quickstart guide:<br>See <a href="https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA/edit#heading=h.jxof6bt5vhut" class="postlink">https://docs.google.com/document/d/10sX ... of6bt5vhut</a><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Fri Apr 12, 2019 1:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pierre_wueth]]></name></author>
		<updated>2019-04-03T06:36:51+00:00</updated>

		<published>2019-04-03T06:36:51+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41976#p41976</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41976#p41976"/>
		<title type="html"><![CDATA[Manipulating Kuka-robot joint using Torque-control]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41976#p41976"><![CDATA[
Hi everyone,<br><br>I am new to pybullet and thanks a lot to the developers for providing a nice simulation platform!<br><br>I recently tried to use pybullet's torque-control mode to manipulate the simulated kuka robot in the example code which can be found in the pybullet_envs directory. I am focusing on only controlling one joint of the robot for now, and although my script is able to run, the selected joint does not move in the GUI <strong class="text-strong">if</strong> the force passed into the setJointMotorCommand2-function is below a certain value (240). I have printed out some values and figured out the following so far: <br><br>=======<br>Forces below 240: The robot joint does not move. Passed force into setJointMotorCommand2-function and the value of appliedJointMotorTorque from the getJointState-function are approximately the same (with a minus sign in front)<br><br>Forces above 240: The robot arm moves. The appliedJointMotorTorque from the joint-sensor outputs maximally -240, regardless of what the desired torque value was.<br>=======<br><br>It seems to me that the robot arm only is able to move above this threshold, but I expected that the joint would start rotating at much lower values and that the force applied to the joint would be continuous (right now, it seems to be a sort of on/off situation). Is this behavior to be expected by the torque-control mode? Is my implementation of torque-control wrong or is it a bug?<br><br>I have made a github repo with my minimally changed code: <a href="https://github.com/pierrewuethrich/pybullet_envs" class="postlink">https://github.com/pierrewuethrich/pybullet_envs</a><br><br>I would greatly appreciate some comments and advice from people who have experience using the torque-control mode. Thanks a lot in advance!<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13256">pierre_wueth</a> — Wed Apr 03, 2019 6:36 am</p><hr />
]]></content>
	</entry>
	</feed>
