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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2016-10-25T20:36:49+00:00</updated>

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

		<entry>
		<author><name><![CDATA[benelot]]></name></author>
		<updated>2016-10-25T20:36:49+00:00</updated>

		<published>2016-10-25T20:36:49+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38369#p38369</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38369#p38369"/>
		<title type="html"><![CDATA[Re: Good / simple introduction example / docs for Bullet 3 G]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38369#p38369"><![CDATA[
@Erwin: In case this comes in handy, I started making a wiki page stub based on what you posted here. This might be nice for the earlyadopters such as scropion81, me and such.<br><br>Here it is: <br><a href="http://bulletphysics.org/mediawiki-1.5.8/index.php/Using_pybullet" class="postlink">http://bulletphysics.org/mediawiki-1.5. ... g_pybullet</a><br><br>Some early feedback:<br><br>Your step-by-step guide worked well on Linux Mint here, I can see the Example Browser with a plane and a ball. However, the p.setSimulation() command does not exist (anymore?). What is the intention of it?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11398">benelot</a> — Tue Oct 25, 2016 8:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2016-10-16T17:52:05+00:00</updated>

		<published>2016-10-16T17:52:05+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38325#p38325</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38325#p38325"/>
		<title type="html"><![CDATA[Re: Good / simple introduction example / docs for Bullet 3 G]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38325#p38325"><![CDATA[
Yes, in your case (and when using pybullet in a content creation environment such as Blender etc) programmatically creating shapes, rigid bodies and constraints make more sense.<br>Also, note that the OpenCL GPGPU rigid body pipeline hasn't been developed for many year, so it will take some time to get it into good shape again, and them putting it behind the abstract API.<br><br>I'll look into all of this, as part of my work.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Sun Oct 16, 2016 5:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scorpion81]]></name></author>
		<updated>2016-10-15T21:28:08+00:00</updated>

		<published>2016-10-15T21:28:08+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38318#p38318</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38318#p38318"/>
		<title type="html"><![CDATA[Re: Good / simple introduction example / docs for Bullet 3 G]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38318#p38318"><![CDATA[
Ok, and the hardcoded example works too.<br>Only thing what worries me a bit about loading from urdf is the short delay in loading time, even already in the example browser<br>Imagine i want to use dynamic voronoi fracturing. For this purpose in blender i let bullet fire contact callbacks to blender,<br>where the impact point and force is evaluated basically and a pointcloud for the next voronoi fracture of the existing<br>shards is generated. In the Fracture Modifier in blender this already works quite nicely. But if i constantly have to write and<br>read urdf files containing a new bigger set of shards, i expect this loading time to become slower and slower. This will be a serious<br>performance bottleneck and slow down the sim unnecessarily.<br><br>So i am looking forward on how to perhaps create rigidbodies and constraints too directly thru the C-API for Bullet 3.x.<br><br>scorpion81<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9237">scorpion81</a> — Sat Oct 15, 2016 9:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scorpion81]]></name></author>
		<updated>2016-10-15T20:09:40+00:00</updated>

		<published>2016-10-15T20:09:40+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38317#p38317</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38317#p38317"/>
		<title type="html"><![CDATA[Re: Good / simple introduction example / docs for Bullet 3 G]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38317#p38317"><![CDATA[
<blockquote class="uncited"><div>You can also try out pybullet to connect to a 'physics server' in the example browser:<br><br>First start the example browser, and select the 'Experiments/Physics Server' example, and leave it running. Before running the script below, your ExampleBrowser in 'Experiments/Physics Server' should look similar to this:<div class="inline-attachment"><!-- ia1 -->physics_server512.png<!-- ia1 --></div>In a new terminal, start python in the build_cmake/example/pybullet directory, start it (python) and then run the following script.<br><div class="codebox"><p>Code: </p><pre><code>import pybullet as pp.connect(p.SHARED_MEMORY)p.setRealTimeSimulation(1)</code></pre></div>The p.setRealTimeSImulation(1) will add some hard-coded world/objects (used for the VR demo). You can also leave out the 'p.setRealTimeSimulation(1)' command. In that case, you have to manually 'step' the simulation by sending 'p.stepSimulation' commands and put objecs in the world by using loadUrdf/loadSdf.<br><br>After running above script, it should look similar to this:<div class="inline-attachment"><!-- ia0 -->pybullet_sharedmem.png<!-- ia0 --></div></div></blockquote><br>Ok, i got the pybullet to run now. Had to recompile my static python 3.5 lib to a shared one, else i got the same linker error. (and i used Cmake and your instructions too)<br>Currently i am looking into pythons xml ElementTree on how to write urdf links (and joints later maybe) from the mesh shards as an XML file.<br>It would be even nicer if the Bullet C-API and thus pybullet would allow this in a more direct way, as you mentioned before  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br>Will try your "hardcoded" example later.<br><br>Greetings, scorpion81<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9237">scorpion81</a> — Sat Oct 15, 2016 8:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2016-10-15T18:16:39+00:00</updated>

		<published>2016-10-15T18:16:39+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38315#p38315</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38315#p38315"/>
		<title type="html"><![CDATA[Re: Good / simple introduction example / docs for Bullet 3 G]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38315#p38315"><![CDATA[
You can also try out pybullet to connect to a 'physics server' in the example browser:<br><br>First start the example browser, and select the 'Experiments/Physics Server' example, and leave it running. Before running the script below, your ExampleBrowser in 'Experiments/Physics Server' should look similar to this:<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1464" class="postimage" alt="physics_server512.png" onclick="viewableArea(this);" /></dt></dl></div>In a new terminal, start python in the build_cmake/example/pybullet directory, start it (python) and then run the following script.<br><div class="codebox"><p>Code: </p><pre><code>import pybullet as pp.connect(p.SHARED_MEMORY)p.setRealTimeSimulation(1)</code></pre></div>The p.setRealTimeSImulation(1) will add some hard-coded world/objects (used for the VR demo). You can also leave out the 'p.setRealTimeSimulation(1)' command. In that case, you have to manually 'step' the simulation by sending 'p.stepSimulation' commands and put objecs in the world by using loadUrdf/loadSdf.<br><br>After running above script, it should look similar to this:<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1465" class="postimage" alt="pybullet_sharedmem.png" onclick="viewableArea(this);" /></dt></dl></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Sat Oct 15, 2016 6:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2016-10-15T18:04:22+00:00</updated>

		<published>2016-10-15T18:04:22+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38314#p38314</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38314#p38314"/>
		<title type="html"><![CDATA[Re: Good / simple introduction example / docs for Bullet 3 G]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38314#p38314"><![CDATA[
Use cmake to build pybullet on Linux and Mac, there are some issues building pybullet using premake.<br>In the Bullet root directory:<br><br>edit build_and_run_cmake.sh and turn BUILD_PYBULLET=ON<br><br>then run this script<br>./build_and_run_cmake.sh<br>This should build all of Bullet and launch the ExampleBrowser. Play with this a bit, and exit it using &lt;ESC&gt; key.<br><br>Then change directory to build_cmake/examples/pybullet. On Linux use<div class="codebox"><p>Code: </p><pre><code>ln -s libpybullet.so pybullet.so</code></pre></div>On Mac OSX use<div class="codebox"><p>Code: </p><pre><code>ln -s libpybullet.dylib pybullet.so</code></pre></div>Start python while in this directory, so it can find pybullet.so, and start your first script: (replace p.GUI with p.DIRECT or p.SHARED_MEMORY, -&gt; shared memory will connect to example browser, while in 'experimental/physics server' mode)<div class="codebox"><p>Code: </p><pre><code>import pybullet as pp.connect(p.GUI)p.loadURDF("plane.urdf")p.loadURDF("sphere_small.urdf",0,0,2)p.setSimulation()</code></pre></div>The VR example only works on Windows at the moment (waiting for Valve/HTC Vive/Oculus Rift),<br>but you can see it using pybullet as follows:<br><div class="codebox"><p>Code: </p><pre><code>import pybullet as pp.connect(p.GUI)p.setRealTimeSimulation(1)</code></pre></div>There are also some example pybullet scripts in Bullet/examples/pybullet. At some stage I'll write some documentation.<br><br>Does that work for you?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Sat Oct 15, 2016 6:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scorpion81]]></name></author>
		<updated>2016-10-15T17:05:27+00:00</updated>

		<published>2016-10-15T17:05:27+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38313#p38313</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38313#p38313"/>
		<title type="html"><![CDATA[Re: Good / simple introduction example / docs for Bullet 3 G]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38313#p38313"><![CDATA[
<blockquote class="uncited"><div>Loading a URDF lets you specify collision shapes, mass, inertia, constraints etc.<br><br>It is work-in-progress, there is not much documentation for the new API yet, I would suggest try getting pybullet to run and give some feedback.<br>There are a few scripts in Bullet/examples/pybullet. <br><br>There will also be C++ access, using Bullet\examples\RoboticsLearning\b3RobotSimAPI.h. Once this is more complete, it will be rename b3PhysicsSimAPI.h...<br>You will be able to do your own graphics engine of course, and use the Bullet connect 'DIRECT' method (instead of GUI or SHARED_MEMORY).</div></blockquote>Ok, first attempt to get pybullet to be built on Linux Mint 17.3, x64 , GCC 4.8.4, Python 3.5.1....<br>got a linker error, see below<br><br>and CFLAGS / CCFLAGS / CPPFLAGS = '-fPIC' before the premake4_linux64 or make command didnt have an effect<br><br>Input:<br><br>CPPFLAGS='-fPIC' ./premake4_linux64 --enable_pybullet --python_include_dir="/home/martin/BlenderSVN/build/bin/2.78/python/include/python3.5m" <br>--python_lib_dir="/home/martin/BlenderSVN/build/bin/2.78/python/lib/python3.5" gmake<br><br>and make in the gmake dir<br><br>Output...(snip)<br><br>...<br>==== Building BulletFileLoader (release64) ====<br>==== Building BulletWorldImporter (release64) ====<br>==== Building pybullet (release64) ====<br>Linking pybullet<br>/usr/bin/ld: ../../bin/libBulletExampleBrowserLib_gmake_x64_release.a(OpenGLExampleBrowser.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC<br>../../bin/libBulletExampleBrowserLib_gmake_x64_release.a: error adding symbols: Bad value<br>collect2: error: ld returned 1 exit status<br>make[1]: *** [../../bin/libpybullet_gmake_x64_release.so] Error 1<br>make: *** [pybullet] Error 2<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9237">scorpion81</a> — Sat Oct 15, 2016 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2016-10-15T15:56:08+00:00</updated>

		<published>2016-10-15T15:56:08+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38311#p38311</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38311#p38311"/>
		<title type="html"><![CDATA[Re: Good / simple introduction example / docs for Bullet 3 G]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38311#p38311"><![CDATA[
Loading a URDF lets you specify collision shapes, mass, inertia, constraints etc.<br><br>It is work-in-progress, there is not much documentation for the new API yet, I would suggest try getting pybullet to run and give some feedback.<br>There are a few scripts in Bullet/examples/pybullet. <br><br>There will also be C++ access, using Bullet\examples\RoboticsLearning\b3RobotSimAPI.h. Once this is more complete, it will be rename b3PhysicsSimAPI.h...<br>You will be able to do your own graphics engine of course, and use the Bullet connect 'DIRECT' method (instead of GUI or SHARED_MEMORY).<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Sat Oct 15, 2016 3:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scorpion81]]></name></author>
		<updated>2016-10-15T15:42:53+00:00</updated>

		<published>2016-10-15T15:42:53+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38310#p38310</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38310#p38310"/>
		<title type="html"><![CDATA[Re: Good / simple introduction example / docs for Bullet 3 G]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38310#p38310"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Another question... since the pybullet wrapper seems not exactly what i can use for the purpose of operating bullet via python</div></blockquote>Why not?<br><br>pybullet and the underlying shared memory C-API will be the new Bullet 3.x API. I plan to create a backend so you can automatically select Bullet 2.x or Bullet 3.x (or other physics engines) under the hood. Those Bullet 3.x bindings will start happenening around PhysicsServerCommandProcessor.cpp...</div></blockquote>Ah ok, well i guess i did not understand yet how this new shared memory C-API works. Like... which commands in particular are necessary to replicate the basic HelloWorld example from the (old) wiki ?<br>Like building a world, adding rigidbodies, setting shapes, adding constraints ?<br>Is there some documentation i might have overlooked ?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9237">scorpion81</a> — Sat Oct 15, 2016 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2016-10-15T15:37:47+00:00</updated>

		<published>2016-10-15T15:37:47+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38307#p38307</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38307#p38307"/>
		<title type="html"><![CDATA[Re: Good / simple introduction example / docs for Bullet 3 G]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=38307#p38307"><![CDATA[
<blockquote class="uncited"><div>Another question... since the pybullet wrapper seems not exactly what i can use for the purpose of operating bullet via python</div></blockquote>Why not?<br><br>pybullet and the underlying shared memory C-API will be the new Bullet 3.x API. I plan to create a backend so you can automatically select Bullet 2.x or Bullet 3.x (or other physics engines) under the hood. Those Bullet 3.x bindings will start happenening around PhysicsServerCommandProcessor.cpp...<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Sat Oct 15, 2016 3:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
