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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2022-12-07T17:19:09+00:00</updated>

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

		<entry>
		<author><name><![CDATA[sai_yg]]></name></author>
		<updated>2022-12-07T17:19:09+00:00</updated>

		<published>2022-12-07T17:19:09+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44178#p44178</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44178#p44178"/>
		<title type="html"><![CDATA[Re: link orientations in multibody are getting affected by another multibody loaded from stl.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44178#p44178"><![CDATA[
Update :<br>1. when loading the sink mesh from stl file, I was not creating a visual shape and using that while creating multibody.<br>2. made changes and used the same mesh as visual shape, and the issue is resolved now.<br>when visualShapes are not created for models loaded from file path, there seem to be a problem with orientations for created primitive shapes following that.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14480">sai_yg</a> — Wed Dec 07, 2022 5:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sai_yg]]></name></author>
		<updated>2022-12-07T16:48:26+00:00</updated>

		<published>2022-12-07T16:48:26+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44177#p44177</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44177#p44177"/>
		<title type="html"><![CDATA[link orientations in multibody are getting affected by another multibody loaded from stl.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44177#p44177"><![CDATA[
I was trying to procedurally creates some utensils and place them inside the sink model I had to load from an stl file.<br>if I load the sink model first, the link orientations in the bowl multibody are all messed up.<br>but if I create the procedural multibodies first, and then load the sink mesh from stl. the orientations are as expected.<div class="codebox"><p>Code: </p><pre><code>mbid = p.createMultiBody(        # 0,        # -1,        # -1,        # (0,0,0),        # (0,0,0,1),        linkMasses=[0]*lns,        linkCollisionShapeIndices=col_shapes,        linkVisualShapeIndices=col_shapes,        linkPositions=col_shape_poses,        linkOrientations=col_shape_orns,        linkInertialFramePositions=[(0,0,0)]*lns,#col_shape_poses,        linkInertialFrameOrientations=[(0,0,0,1)]*lns,#col_shape_orns,        linkParentIndices=[0]*lns,        linkJointTypes=[p.JOINT_FIXED]*lns,        linkJointAxis=[(0,0,0)]*lns,        physicsClientId=pbClientId)</code></pre></div>I also tried by uncommenting the first few arguments.<br>I'm developing code in jupyter notebook.<br>the orientations in both cases are also same. I checked the diff in an online tool.<br>please let me know if you need any additional data.<dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1965" class="postimage" alt="same_orns.png" onclick="viewableArea(this);" /></dt></dl><br /><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1964" class="postimage" alt="sink_later.png" onclick="viewableArea(this);" /></dt></dl><br /><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1963" class="postimage" alt="sink_first.png" onclick="viewableArea(this);" /></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14480">sai_yg</a> — Wed Dec 07, 2022 4:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
