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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2020-01-21T05:48:55+00:00</updated>

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

		<entry>
		<author><name><![CDATA[LocknutBushing]]></name></author>
		<updated>2020-01-21T05:48:55+00:00</updated>

		<published>2020-01-21T05:48:55+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42585#p42585</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42585#p42585"/>
		<title type="html"><![CDATA[Re: Robot Joints stiff despite no damping and deactivated motors]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42585#p42585"><![CDATA[
Also solved. This seems to have been due to continuous joints still being affected by joint limits, but only in POSITION_CONTROL. Not sure why that is.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13513">LocknutBushing</a> — Tue Jan 21, 2020 5:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LocknutBushing]]></name></author>
		<updated>2020-01-20T00:25:39+00:00</updated>

		<published>2020-01-20T00:25:39+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42583#p42583</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42583#p42583"/>
		<title type="html"><![CDATA[Re: Robot Joints stiff despite no damping and deactivated motors]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42583#p42583"><![CDATA[
Update: Joints still snap back to the default position in position control mode, regardless of the position command...<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13513">LocknutBushing</a> — Mon Jan 20, 2020 12:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LocknutBushing]]></name></author>
		<updated>2020-01-19T20:54:26+00:00</updated>

		<published>2020-01-19T20:54:26+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42581#p42581</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42581#p42581"/>
		<title type="html"><![CDATA[Re: Robot Joints stiff despite no damping and deactivated motors]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42581#p42581"><![CDATA[
Problem solved--the issue was due to using revolute joints with both the upper and lower angle limits defaulting to 0. I changed the joints to "continuous" and the robot is as floppy as boiled spaghetti.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13513">LocknutBushing</a> — Sun Jan 19, 2020 8:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LocknutBushing]]></name></author>
		<updated>2020-01-19T04:56:05+00:00</updated>

		<published>2020-01-19T04:56:05+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42576#p42576</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42576#p42576"/>
		<title type="html"><![CDATA[Re: Robot Joints stiff despite no damping and deactivated motors]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42576#p42576"><![CDATA[
More detail: I fixed the base and have found that I am able to drag some of the links a bit, but the joints resist and then snap back to the default position as soon as I let go.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13513">LocknutBushing</a> — Sun Jan 19, 2020 4:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LocknutBushing]]></name></author>
		<updated>2020-01-19T00:07:10+00:00</updated>

		<published>2020-01-19T00:07:10+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42575#p42575</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42575#p42575"/>
		<title type="html"><![CDATA[Robot Joints stiff despite no damping and deactivated motors]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42575#p42575"><![CDATA[
Hi,<br><br>I'm new to PyBullet, so I wouldn't be surprised if the answer to my question is something fairly obvious.<br><br>I used the SolidWorks to URDF exporter to export my bipedal robot design to PyBullet. When the model loads in and I run the simulation in real time, the robot can fall over on its side but the joints can't move. <br><br>POSITION_CONTROL has no effect. I also tried velocity control and torque control with force=0, expecting the robot to collapse like a ragdoll, but it continues to act like a figurine. When I load other models in (e.g. biped2d_pybullet.urdf), they collapse like ragdolls.<br><br>The robot has 8 revolute joints, and there is no damping specified in the URDF (so it should default to zero).<br><br>Strangely enough, the following command just causes the robot to vibrate without moving its joints:<br><div class="codebox"><p>Code: </p><pre><code>for joint in range(p.getNumJoints(robot)):   p.setJointMotorControl2(robot, joint, p.VELOCITY_CONTROL, targetVelocity=50, force=500)</code></pre></div>Here is the URDF for reference...<div class="codebox"><p>Code: </p><pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;!-- This URDF was automatically created by SolidWorks to URDF Exporter! Originally created by Stephen Brawner (brawner@gmail.com)      Commit Version: 1.5.1-0-g916b5db  Build Version: 1.5.7152.31018     For more information, please see http://wiki.ros.org/sw_urdf_exporter --&gt;&lt;robot  name="spryped rev02"&gt;  &lt;link    name="body"&gt;    &lt;inertial&gt;      &lt;origin        xyz="0.00146683164005432 -0.0471884402468711 0.076169520744687"        rpy="0 0 0" /&gt;      &lt;mass        value="3.70313889840838" /&gt;      &lt;inertia        ixx="0.00429570716761128"        ixy="3.03278167284736E-09"        ixz="-2.3332902790982E-06"        iyy="0.00335471620497785"        iyz="-8.32059718979089E-06"        izz="0.00591264443127761" /&gt;    &lt;/inertial&gt;    &lt;visual&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/body.STL" /&gt;      &lt;/geometry&gt;      &lt;material        name=""&gt;        &lt;color          rgba="0.752941176470588 0.752941176470588 0.752941176470588 1" /&gt;      &lt;/material&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/body.STL" /&gt;      &lt;/geometry&gt;    &lt;/collision&gt;  &lt;/link&gt;  &lt;link    name="left femur"&gt;    &lt;inertial&gt;      &lt;origin        xyz="0.0014637 0.050952 -0.056842"        rpy="0 0 0" /&gt;      &lt;mass        value="0.30999" /&gt;      &lt;inertia        ixx="0.00069104"        ixy="-9.483E-08"        ixz="3.5642E-05"        iyy="0.00070116"        iyz="3.5726E-05"        izz="0.00059024" /&gt;    &lt;/inertial&gt;    &lt;visual&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/left femur.STL" /&gt;      &lt;/geometry&gt;      &lt;material        name=""&gt;        &lt;color          rgba="1 1 1 1" /&gt;      &lt;/material&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/left femur.STL" /&gt;      &lt;/geometry&gt;    &lt;/collision&gt;  &lt;/link&gt;  &lt;joint    name="1"    type="revolute"&gt;    &lt;origin      xyz="0.14547 -0.10347 0.055904"      rpy="0 0 0" /&gt;    &lt;parent      link="body" /&gt;    &lt;child      link="left femur" /&gt;    &lt;axis      xyz="0 -1 0" /&gt;    &lt;limit      lower="0"      upper="0"      effort="0"      velocity="0" /&gt;  &lt;/joint&gt;  &lt;link    name="left tibiotarsus"&gt;    &lt;inertial&gt;      &lt;origin        xyz="0.0492126930232007 0.0535384623347315 -0.0842779052215516"        rpy="0 0 0" /&gt;      &lt;mass        value="2.87772219223662" /&gt;      &lt;inertia        ixx="0.00533528507057087"        ixy="7.37273330855451E-08"        ixz="-1.09674863027954E-07"        iyy="0.0034959774077804"        iyz="0.00148266889917068"        izz="0.00225851284239546" /&gt;    &lt;/inertial&gt;    &lt;visual&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/left tibiotarsus.STL" /&gt;      &lt;/geometry&gt;      &lt;material        name=""&gt;        &lt;color          rgba="0.752941176470588 0.752941176470588 0.752941176470588 1" /&gt;      &lt;/material&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/left tibiotarsus.STL" /&gt;      &lt;/geometry&gt;    &lt;/collision&gt;  &lt;/link&gt;  &lt;joint    name="2"    type="revolute"&gt;    &lt;origin      xyz="-0.04965 0.05165 -0.114"      rpy="0 0 0" /&gt;    &lt;parent      link="left femur" /&gt;    &lt;child      link="left tibiotarsus" /&gt;    &lt;axis      xyz="-1 0 0" /&gt;    &lt;limit      lower="0"      upper="0"      effort="0"      velocity="0" /&gt;  &lt;/joint&gt;  &lt;link    name="left tarsometatarsus"&gt;    &lt;inertial&gt;      &lt;origin        xyz="0.0653386529323088 0.00410211529259828 -0.10795430435685"        rpy="0 0 0" /&gt;      &lt;mass        value="0.386426569747224" /&gt;      &lt;inertia        ixx="0.00159650766426425"        ixy="3.44828011287871E-05"        ixz="-3.16861898281007E-05"        iyy="0.00150999755658726"        iyz="-0.000310806569340194"        izz="0.000553884465795286" /&gt;    &lt;/inertial&gt;    &lt;visual&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/left tarsometatarsus.STL" /&gt;      &lt;/geometry&gt;      &lt;material        name=""&gt;        &lt;color          rgba="1 1 1 1" /&gt;      &lt;/material&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/left tarsometatarsus.STL" /&gt;      &lt;/geometry&gt;    &lt;/collision&gt;  &lt;/link&gt;  &lt;joint    name="3"    type="revolute"&gt;    &lt;origin      xyz="-0.0005 0.10545 -0.16876"      rpy="0 0 0" /&gt;    &lt;parent      link="left tibiotarsus" /&gt;    &lt;child      link="left tarsometatarsus" /&gt;    &lt;axis      xyz="-1 0 0" /&gt;    &lt;limit      lower="0"      upper="0"      effort="0"      velocity="0" /&gt;  &lt;/joint&gt;  &lt;link    name="left toe"&gt;    &lt;inertial&gt;      &lt;origin        xyz="0.00549999991446565 0.0246536250465857 -0.0376986621147014"        rpy="0 0 0" /&gt;      &lt;mass        value="0.111889664829208" /&gt;      &lt;inertia        ixx="0.000217562035776632"        ixy="-7.62138636248417E-13"        ixz="8.82511593906485E-14"        iyy="3.26048621480854E-05"        iyz="-1.99012084230601E-06"        izz="0.00019521205650501" /&gt;    &lt;/inertial&gt;    &lt;visual&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/left toe.STL" /&gt;      &lt;/geometry&gt;      &lt;material        name=""&gt;        &lt;color          rgba="1 1 1 1" /&gt;      &lt;/material&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/left toe.STL" /&gt;      &lt;/geometry&gt;    &lt;/collision&gt;  &lt;/link&gt;  &lt;joint    name="4"    type="revolute"&gt;    &lt;origin      xyz="0.0444 -0.12296 -0.48273"      rpy="0 0 0" /&gt;    &lt;parent      link="left tarsometatarsus" /&gt;    &lt;child      link="left toe" /&gt;    &lt;axis      xyz="-1 0 0" /&gt;    &lt;limit      lower="0"      upper="0"      effort="0"      velocity="0" /&gt;  &lt;/joint&gt;  &lt;link    name="right femur"&gt;    &lt;inertial&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;mass        value="0" /&gt;      &lt;inertia        ixx="0"        ixy="0"        ixz="0"        iyy="0"        iyz="0"        izz="0" /&gt;    &lt;/inertial&gt;    &lt;visual&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/right femur.STL" /&gt;      &lt;/geometry&gt;      &lt;material        name=""&gt;        &lt;color          rgba="1 1 1 1" /&gt;      &lt;/material&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/right femur.STL" /&gt;      &lt;/geometry&gt;    &lt;/collision&gt;  &lt;/link&gt;  &lt;joint    name="5"    type="revolute"&gt;    &lt;origin      xyz="-0.14253 -0.10347 0.055904"      rpy="0 0 0" /&gt;    &lt;parent      link="body" /&gt;    &lt;child      link="right femur" /&gt;    &lt;axis      xyz="0 -1 0" /&gt;    &lt;limit      lower="0"      upper="0"      effort="0"      velocity="0" /&gt;  &lt;/joint&gt;  &lt;link    name="right tibiotarsus"&gt;    &lt;inertial&gt;      &lt;origin        xyz="-0.0492495047620073 0.053501663392721 -0.0842309932012287"        rpy="0 0 0" /&gt;      &lt;mass        value="2.87581042362099" /&gt;      &lt;inertia        ixx="0.00533529391220343"        ixy="-7.07923527083726E-08"        ixz="1.22239241571791E-07"        iyy="0.00349593182338153"        iyz="0.00148267255132337"        izz="0.00225848427762363" /&gt;    &lt;/inertial&gt;    &lt;visual&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/right tibiotarsus.STL" /&gt;      &lt;/geometry&gt;      &lt;material        name=""&gt;        &lt;color          rgba="0.776470588235294 0.756862745098039 0.737254901960784 1" /&gt;      &lt;/material&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/right tibiotarsus.STL" /&gt;      &lt;/geometry&gt;    &lt;/collision&gt;  &lt;/link&gt;  &lt;joint    name="6"    type="revolute"&gt;    &lt;origin      xyz="0.04965 0.05165 -0.114"      rpy="0 0 0" /&gt;    &lt;parent      link="right femur" /&gt;    &lt;child      link="right tibiotarsus" /&gt;    &lt;axis      xyz="1 0 0" /&gt;    &lt;limit      lower="0"      upper="0"      effort="0"      velocity="0" /&gt;  &lt;/joint&gt;  &lt;link    name="right tarsometatarsus"&gt;    &lt;inertial&gt;      &lt;origin        xyz="-0.0654870852390804 0.00442186689390905 -0.107335066340509"        rpy="0 0 0" /&gt;      &lt;mass        value="0.388385413325526" /&gt;      &lt;inertia        ixx="0.0015965161251087"        ixy="-3.45791013100941E-05"        ixz="3.15809364112141E-05"        iyy="0.00151198241193131"        iyz="-0.000307831493495565"        izz="0.000551992188290932" /&gt;    &lt;/inertial&gt;    &lt;visual&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/right tarsometatarsus.STL" /&gt;      &lt;/geometry&gt;      &lt;material        name=""&gt;        &lt;color          rgba="1 1 1 1" /&gt;      &lt;/material&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/right tarsometatarsus.STL" /&gt;      &lt;/geometry&gt;    &lt;/collision&gt;  &lt;/link&gt;  &lt;joint    name="7"    type="revolute"&gt;    &lt;origin      xyz="0.0005 0.10545 -0.16876"      rpy="0 0 0" /&gt;    &lt;parent      link="right tibiotarsus" /&gt;    &lt;child      link="right tarsometatarsus" /&gt;    &lt;axis      xyz="1 0 0" /&gt;    &lt;limit      lower="0"      upper="0"      effort="0"      velocity="0" /&gt;  &lt;/joint&gt;  &lt;link    name="right toe"&gt;    &lt;inertial&gt;      &lt;origin        xyz="-0.0160000000855337 0.00863889472199542 -0.0319952935808615"        rpy="0 0 0" /&gt;      &lt;mass        value="0.111889664829208" /&gt;      &lt;inertia        ixx="0.000217562035776632"        ixy="-7.62138591136326E-13"        ixz="8.82511158185202E-14"        iyy="3.26048621484914E-05"        iyz="-1.99012084072618E-06"        izz="0.000195212056504604" /&gt;    &lt;/inertial&gt;    &lt;visual&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/right toe.STL" /&gt;      &lt;/geometry&gt;      &lt;material        name=""&gt;        &lt;color          rgba="1 1 1 1" /&gt;      &lt;/material&gt;    &lt;/visual&gt;    &lt;collision&gt;      &lt;origin        xyz="0 0 0"        rpy="0 0 0" /&gt;      &lt;geometry&gt;        &lt;mesh          filename="package://spryped rev02/meshes/right toe.STL" /&gt;      &lt;/geometry&gt;    &lt;/collision&gt;  &lt;/link&gt;  &lt;joint    name="8"    type="revolute"&gt;    &lt;origin      xyz="-0.0339 -0.10545 -0.48875"      rpy="0 0 0" /&gt;    &lt;parent      link="right tarsometatarsus" /&gt;    &lt;child      link="right toe" /&gt;    &lt;axis      xyz="-1 0 0" /&gt;    &lt;limit      lower="0"      upper="0"      effort="0"      velocity="0" /&gt;  &lt;/joint&gt;&lt;/robot&gt;</code></pre></div>And here is the .py:<br><div class="codebox"><p>Code: </p><pre><code>import pybullet as pimport timeimport pybullet_dataGRAVITY = -9.81dt = 1e-3iters = 2000physicsClient = p.connect(p.GUI)p.setAdditionalSearchPath(pybullet_data.getDataPath())p.resetSimulation()planeID = p.loadURDF("plane.urdf")robot = p.loadURDF("Desktop/spryped rev02/urdf/spryped rev02.urdf", [0,0,0.8], useFixedBase=0)p.setGravity(0,0, GRAVITY)p.setTimeStep(dt)jointFrictionForce = 0for joint in range(p.getNumJoints(robot)):   p.setJointMotorControl2(robot, joint, p.VELOCITY_CONTROL, targetVelocity=50, force=20)p.setRealTimeSimulation(1)time.sleep(10000)</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13513">LocknutBushing</a> — Sun Jan 19, 2020 12:07 am</p><hr />
]]></content>
	</entry>
	</feed>
