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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2020-05-09T01:26:15+00:00</updated>

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

		<entry>
		<author><name><![CDATA[steven]]></name></author>
		<updated>2020-05-09T01:26:15+00:00</updated>

		<published>2020-05-09T01:26:15+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42838#p42838</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42838#p42838"/>
		<title type="html"><![CDATA[Re: calculateMassMatrix inconsistent with RBDL]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42838#p42838"><![CDATA[
<a href="http://www.doc88.com/p-9833547094235.html" class="postlink">http://www.doc88.com/p-9833547094235.html</a><br>not sure if you can access this link, also wanted to attach the pdf for your reference but it is too large about 32M for this web. i can email to you if you need.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13075">steven</a> — Sat May 09, 2020 1:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rohun]]></name></author>
		<updated>2020-05-08T18:32:13+00:00</updated>

		<published>2020-05-08T18:32:13+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42837#p42837</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42837#p42837"/>
		<title type="html"><![CDATA[Re: calculateMassMatrix inconsistent with RBDL]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42837#p42837"><![CDATA[
Thanks Steven! <br><br>I've confirmed this works. You've helped us simplify our infrastructure significantly. If you don't mind, could you please link the original paper for bullet as well? <br><br>-rohun<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13604">rohun</a> — Fri May 08, 2020 6:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[steven]]></name></author>
		<updated>2020-05-08T11:10:40+00:00</updated>

		<published>2020-05-08T11:10:40+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42836#p42836</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42836#p42836"/>
		<title type="html"><![CDATA[Re: calculateMassMatrix inconsistent with RBDL]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42836#p42836"><![CDATA[
adding this 'flags=pb.URDF_USE_INERTIA_FROM_FILE' when loading the urdf can fix this.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13075">steven</a> — Fri May 08, 2020 11:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[steven]]></name></author>
		<updated>2020-05-07T13:59:41+00:00</updated>

		<published>2020-05-07T13:59:41+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42832#p42832</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42832#p42832"/>
		<title type="html"><![CDATA[Re: calculateMassMatrix inconsistent with RBDL]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42832#p42832"><![CDATA[
thanks for your reply,  i have found the orignal paper for bullet and i will check it and try to find the cause.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13075">steven</a> — Thu May 07, 2020 1:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rohun]]></name></author>
		<updated>2020-05-05T17:59:56+00:00</updated>

		<published>2020-05-05T17:59:56+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42829#p42829</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42829#p42829"/>
		<title type="html"><![CDATA[Re: calculateMassMatrix inconsistent with RBDL]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42829#p42829"><![CDATA[
Hi Steven, <br><br>No updates at the moment. We're trying to use the python wrapper for RBDL directly as a short term solution. <br><br>For our research we'd like to use similar controllers for both similar robots and real robots for experimentation. We've used an internal physics simulator (that uses RBDL) for real robot control and wanted to verify that pybullet produces the same mass matrix for the same robot state. <br><br>I'd appreciate it if anyone else can try running the scripts I've attached to verify the issue.<br><br>-Rohun<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13604">rohun</a> — Tue May 05, 2020 5:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[steven]]></name></author>
		<updated>2020-04-29T01:54:42+00:00</updated>

		<published>2020-04-29T01:54:42+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42820#p42820</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42820#p42820"/>
		<title type="html"><![CDATA[Re: calculateMassMatrix inconsistent with RBDL]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42820#p42820"><![CDATA[
Do you have any progress? Could you tell me why did you compare the MassMatrix between them? thanks.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13075">steven</a> — Wed Apr 29, 2020 1:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rohun]]></name></author>
		<updated>2020-04-21T01:19:33+00:00</updated>

		<published>2020-04-21T01:19:33+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42792#p42792</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42792#p42792"/>
		<title type="html"><![CDATA[calculateMassMatrix inconsistent with RBDL]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42792#p42792"><![CDATA[
Hi Erwin, <br><br>I use pybullet for operational space control on 7-dof manipulators. I've noticed some inconsistencies with the mass matrix calculated by pybullet compared to other simulation environments. I've written two small scripts that demonstrate this issue by comparing pybullet and RBDL.<br><br>To help recreate the error, I've used the panda.urdf found in bullet3 (commit f40a200) at the following filepath:<br>bullet3/examples/pybullet/gym/pybullet_data/franka_panda<br><br>I use pybullet 2.7.1 in a python3.5 virtual environment. I'd appreciate any help you can offer for this issue.<br><br>Pybullet<div class="codebox"><p>Code: </p><pre><code>import pybullet as pbimport numpy as npphysics_id = pb.connect(pb.DIRECT)arm_id = pb.loadURDF(    fileName='/home/rohunk-local/bullet3/examples/pybullet/gym/pybullet_data/franka_panda/panda.urdf',    basePosition=[0,0,0],    baseOrientation=[0,0,0,1],    useFixedBase=True,    physicsClientId=physics_id)pb.setGravity(0, 0, -9.8, physicsClientId=physics_id)neutral_joint_angles= [0., -0.3135, 0., -2.515, 0., 2.226, 0.87]for index, angle in enumerate(neutral_joint_angles):    pb.resetJointState(        bodyUniqueId=arm_id,         jointIndex=index,         targetValue=angle,         physicsClientId=physics_id)pb.stepSimulation(physics_id)joint_positions = []for joint_index in range(7):    joint_positions.append(pb.getJointState(        arm_id,         joint_index,         physics_id)[0])print("joint positions")print(joint_positions)mass_matrix = pb.calculateMassMatrix(            bodyUniqueId=arm_id,            objPositions=joint_positions,            physicsClientId=physics_id)print("Mass Matrix")print(mass_matrix)</code></pre></div>RBDL<div class="codebox"><p>Code: </p><pre><code>#!/usr/bin/python# # rbdl mass matriximport rbdlimport numpy as npimport csvmdl = rbdl.loadModel(b'/home/rohunk-local/bullet3/examples/pybullet/gym/pybullet_data/franka_panda/panda.urdf')mass_matrix = np.zeros((9, 9 ), dtype=np.double)neutral_joint_angles= [0., -0.3135, 0., -2.515, 0., 2.226, 0.87]rbdl.CompositeRigidBodyAlgorithm(mdl, np.asarray(neutral_joint_angles, dtype=np.double),mass_matrix) </code></pre></div><dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1815">rbdl_mass_matrix.csv</a></dt></dl><br /><dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1814">pb_mass_matrix.csv</a></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13604">rohun</a> — Tue Apr 21, 2020 1:19 am</p><hr />
]]></content>
	</entry>
	</feed>
