<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Paul Solt &#187; player/stage</title>
	<atom:link href="http://paulsolt.com/tag/playerstage/feed/" rel="self" type="application/rss+xml" />
	<link>http://paulsolt.com</link>
	<description>Putting the Inc back in Solt since 2005.</description>
	<lastBuildDate>Wed, 12 May 2010 19:34:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>iPhone Player/Stage Remote Control</title>
		<link>http://paulsolt.com/2009/08/iphone-playerstage-remote-control/</link>
		<comments>http://paulsolt.com/2009/08/iphone-playerstage-remote-control/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 08:28:44 +0000</pubDate>
		<dc:creator>Paul Solt</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[player/stage]]></category>
		<category><![CDATA[remote control]]></category>
		<category><![CDATA[robotics]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://paulsolt.com/?p=329</guid>
		<description><![CDATA[Here&#8217;s the iPhone Player/Stage Remote Control project! There&#8217;s a .pdf that describes how to setup Xcode in the .zip file. The goal of this project was to use the Player/Stage robotics code on the iPhone to communicate and control robots. I discuss how to setup the Xcode development environment. There are two example Xcode projects. [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the iPhone Player/Stage Remote Control project! There&#8217;s a .pdf that describes how to setup Xcode in the .zip file.</p>
<p style="text-align: center;">
<div id="attachment_456" class="wp-caption aligncenter" style="width: 549px"><a href="http://paulsolt.com/wp-content/uploads/2009/08/RRemoteiPhone.png"><img class="size-full wp-image-456 " title="RRemoteiPhone" src="http://paulsolt.com/wp-content/uploads/2009/08/RRemoteiPhone.png" alt="" width="539" height="290" /></a><p class="wp-caption-text">Controlling a Robot over Wi-Fi</p></div>
<div id="attachment_455" class="wp-caption aligncenter" style="width: 506px"><a href="http://paulsolt.com/wp-content/uploads/2009/08/PlayerStage.png"><img class="size-full wp-image-455 " title="PlayerStage" src="http://paulsolt.com/wp-content/uploads/2009/08/PlayerStage.png" alt="" width="496" height="510" /></a><p class="wp-caption-text">A Virtual Robot in a Virtual World</p></div>
<p>The goal of this project was to use the Player/Stage robotics code on the iPhone to communicate and control robots. I discuss how to setup the  Xcode development environment. There are two example Xcode projects. The first one is an Objective-C project that wraps around the C++ Player/Stage code. The second project is a very primitive C++ program running on the iPhone without any UI. Both of these Xcode projects are fully documented and will serve as a starting point to iPhone Player/Stage development.</p>
<p>iPhone Player/Stage Remote Control Project: <a href="http://paulsolt.com/wp-content/uploads/2009/08/iPhonePlayerStage.zip">iPhonePlayerStage</a></p>
<p>Feel free to ask questions and let me know how you use the code.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulsolt.com/2009/08/iphone-playerstage-remote-control/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>iPhone Remote Control Samples</title>
		<link>http://paulsolt.com/2009/08/iphone-remote-control-samples/</link>
		<comments>http://paulsolt.com/2009/08/iphone-remote-control-samples/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 06:08:20 +0000</pubDate>
		<dc:creator>Paul Solt</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[ImagineRIT]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[player/stage]]></category>
		<category><![CDATA[remote control]]></category>
		<category><![CDATA[RIT]]></category>
		<category><![CDATA[Robot]]></category>

		<guid isPermaLink="false">http://paulsolt.com/2009/08/iphone-remote-control-samples/</guid>
		<description><![CDATA[Get ready for an iPhone robot remote control. I&#8217;m working on creating a couple samples and documentation. Check out the video from Imagine RIT: http://www.youtube.com/watch?v=MOxTV41Lqac Here&#8217;s the link to my follow-up post: iPhone Player/Stage Sample Projects]]></description>
			<content:encoded><![CDATA[<p>Get ready for an iPhone robot remote control. I&#8217;m working on creating a couple samples and documentation.</p>
<p>Check out the video from Imagine RIT: <a href="http://www.youtube.com/watch?v=MOxTV41Lqac">http://www.youtube.com/watch?v=MOxTV41Lqac</a></p>
<p>Here&#8217;s the link to my follow-up post: <a href="http://paulsolt.com/2009/08/iphone-playerstage-remote-control/">iPhone Player/Stage Sample Projects</a></p>
]]></content:encoded>
			<wfw:commentRss>http://paulsolt.com/2009/08/iphone-remote-control-samples/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Player/Stage, MacPorts, and iPhone</title>
		<link>http://paulsolt.com/2009/04/playerstage-macports-and-iphone/</link>
		<comments>http://paulsolt.com/2009/04/playerstage-macports-and-iphone/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 22:43:40 +0000</pubDate>
		<dc:creator>Paul Solt</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Macbook Pro]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[player/stage]]></category>

		<guid isPermaLink="false">http://paulsolt.com/?p=193</guid>
		<description><![CDATA[Today I worked on setting up Player/Stage on my Macbook Pro with Leopard 10.5.6 and I ran into a few issues. I was using Macports 1.710 and I was attempting to install player-stage-player (2.03 2.1.2) and player-stage-stage (2.03 2.1.1) following a short guide at http://bentham.k2.t.u-tokyo.ac.jp/notebook/?p=247 If it&#8217;s your first time using macports it can take [...]]]></description>
			<content:encoded><![CDATA[<p>Today I worked on setting up Player/Stage on my Macbook Pro with Leopard 10.5.6 and I ran into a few issues.</p>
<p>I was using Macports 1.710 and I was attempting to install player-stage-player (2.03 <span style="text-decoration: line-through;">2.1.2</span>) and player-stage-stage (2.03 <span style="text-decoration: line-through;">2.1.1</span>) following a short guide at <a href="http://bentham.k2.t.u-tokyo.ac.jp/notebook/?p=247">http://bentham.k2.t.u-tokyo.ac.jp/notebook/?p=247</a></p>
<p>If it&#8217;s your first time using macports it can take a long time. I waited 2+ hours to download/build/install dependencies</p>
<p>I used the command:</p>
<pre>$ sudo port install playerstage-player playerstage-stage</pre>
<p>However it errored out at the end with the message:</p>
<pre>$ sudo port install playerstage-player playerstage-stage
---&gt;  Building playerstage-player
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_playerstage-player/work/player-2.0.4" &amp;&amp; make all " returned error 2
Command output: building '_playerc' extension
swigging playerc.i to playerc_wrap.c
swig -python -o playerc_wrap.c playerc.i
playerc.i:44: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG&lt;LANG&gt; instead.
playerc.i:82: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG&lt;LANG&gt; instead.
playerc.i:121: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG&lt;LANG&gt; instead.
playerc.i:127: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG&lt;LANG&gt; instead.
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -I./../.. -I../../../.. -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c playerc_wrap.c -o build/temp.macosx-10.5-i386-2.5/playerc_wrap.o
playerc_wrap.c: In function '_wrap_playerc_mclient_client_set':
playerc_wrap.c:40301: warning: assignment from incompatible pointer type
playerc_wrap.c: In function '_wrap_playerc_mclient_addclient':
playerc_wrap.c:40504: warning: passing argument 2 of 'playerc_mclient_addclient' from incompatible pointer type
playerc_wrap.c: In function '_wrap_playerc_mclient_client_set':
playerc_wrap.c:40301: warning: assignment from incompatible pointer type
playerc_wrap.c: In function '_wrap_playerc_mclient_addclient':
playerc_wrap.c:40504: warning: passing argument 2 of 'playerc_mclient_addclient' from incompatible pointer type
gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-i386-2.5/playerc_wrap.o -L./../../.libs -L../../../../libplayerxdr/.libs -L../../../../libplayercore/.libs -L../../../../libplayerjpeg/.libs -lplayerxdr -lplayerc -lplayerjpeg -ljpeg -lplayererror -o build/lib.macosx-10.5-i386-2.5/_playerc.so
ld: library not found for -ljpeg
collect2: ld returned 1 exit status
ld: library not found for -ljpeg
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccI9TvVp.out
(No such file or directory)
error: command 'gcc' failed with exit status 1
make[6]: *** [pythonbuild] Error 1
make[5]: *** [all] Error 2
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.</pre>
<p>So I searched around the MacPorts website and I came across the ticket <a title="Bug Ticket" href="http://trac.macports.org/ticket/18891#comment:3">#18891</a>, which basically said to run the following command to change the version of <strong>python</strong> being used from 3.0 to 2.5.</p>
<pre>$ sudo port install python_select &amp;&amp; sudo python_select python25
Skipping org.macports.activate (python_select +darwin_9) since this
port is already active
---&gt;  Cleaning python_select
Selecting version "python25" for python</pre>
<p>Following that command I was able to finish installing Player/Stage via MacPorts by using the orginal port command.</p>
<pre>$ sudo port install playerstage-player playerstage-stage
---&gt;  Building playerstage-player
---&gt;  Staging playerstage-player into destroot
---&gt;  Installing playerstage-player @2.0.4_2
---&gt;  Activating playerstage-player @2.0.4_2
---&gt;  Cleaning playerstage-player
---&gt;  Fetching playerstage-stage
---&gt;  Attempting to fetch stage-2.0.3.tar.bz2 from

http://voxel.dl.sourceforge.net/playerstage

---&gt;  Verifying checksum(s) for playerstage-stage
---&gt;  Extracting playerstage-stage
---&gt;  Configuring playerstage-stage
---&gt;  Building playerstage-stage
---&gt;  Staging playerstage-stage into destroot
---&gt;  Installing playerstage-stage @2.0.3_0
---&gt;  Activating playerstage-stage @2.0.3_0
---&gt;  Cleaning playerstage-stage</pre>
<p>I tried to use player stage from MacPorts.</p>
<pre>$ player /opt/local/var/macports/software/playerstage-stage\
/*/opt/local/share/stage/worlds/simple.cfg</pre>
<p>And I received the error:</p>
<pre>rr: unable to open color database /usr/X11R6/lib/X11/rgb.txt
 : No such file or directory (stage.c stg_lookup_color)</pre>
<p>Following the advice from <a title="PlayerStage setup" href="http://bentham.k2.t.u-tokyo.ac.jp/notebook/?cat=5" target="_blank">http://bentham.k2.t.u-tokyo.ac.jp/notebook/?cat=5</a> I added the following link.</p>
<div id="codebox">
<pre>$ sudo ln -s /usr/X11/share/X11/rgb.txt /usr/X11R6/lib/X11/rgb.txt</pre>
<p>Now I am able to create a player server and connect with a client with the commands:</p>
<pre>$ player /opt/local/var/macports/software/playerstage-stage\
/*/opt/local/share/stage/worlds/simple.cfg

/opt/local/var/macports/software/playerstage-player\
/*/opt/local/share/player/examples/libplayerc++/laserobstacleavoid</pre>
<p>With the ability to run player/stage I will post again on my progress as I use an iPhone to run the Player client, rather than my Macbook Pro.</p>
<div id="attachment_209" class="wp-caption alignleft" style="width: 644px"><a rel="attachment wp-att-209" href="http://paulsolt.com/2009/04/playerstage-macports-and-iphone/robotiphone/"><img class="size-full wp-image-209" title="robotiphone" src="http://paulsolt.com/wp-content/uploads/2009/04/robotiphone.png" alt="Player client running on iPhone with Player/Stage." width="634" height="688" /></a><p class="wp-caption-text">Player client running on iPhone with Player/Stage.</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://paulsolt.com/2009/04/playerstage-macports-and-iphone/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->