Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

August 31 2011

What the iCub Does During Holidays

Leo here at IDSIA has been working on a really nifty nice demo of what you can do with the iCub simulator, if you are willing to get your hands dirty and go into the code. The following video shows the outcome.

iCub Dancing Rave
How cool is that?! This is the simulator with a changed dome and some nifty floor tiling. Okay the sunglasses I think is scripted but the rest is using a beat detector which sends the commands via YARP to the simulator.

July 10 2011

ACE/YARP on Mac – The Easy Way

Good news everyone!
Paul Fitzpatrick just posted this on the robotcub hackers list, a very quick and easy way to install ACE and YARP on OSX:

ACE and YARP are now available through homebrew, a package manager for Macs [1]. On a fresh Mac with Xcode installed, you can install YARP by opening a terminal and doing:

# install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
# install ace, gsl, gtk+, and yarp
brew install yarp

Cheers,
Paul

[1] http://mxcl.github.com/homebrew/

That gets a big yay from me! Thanks Paul!

April 15 2011

ACE and YARP – Setting up a new MBP – Pt. 2

Continuing the setup of my new MacBook Pro 13", needed for the projects I am involved with here at IDSIA. This is part 2, trying to get YARP and therefore ACE running on the OS X. Maybe somebody else is using similar software so here is how I setup the following libraries and tools on Snow Leopard: XCode, OpenGL(is part of OSX/XCode), Git, CMake, ACE, YARP, QT, OpenCV, ODE, BulletPhysics, and SDL. In the end I also installed pyBrain (with scipy and numpy).

I have installed homebrew and cmake (Part 1 is here). For YARP we need, and  well generally a good thing to have is, the Gnu Scientific Library, for the GUI stuff of YARP we also need gtk:

brew install gsl
brew install gtk
brew install gtkmm glib glibmm
brew install libglade

To connect to the iCub robot a library called YARP is needed, this library is in turn depending on the ACE libraries. No brew formula exists for this two so here it gets a bit trickier. A good tutorial can be found here: http://eris.liralab.it/yarp/specs/dox/user/html/install.html. We need to checkout the yarp svn directory (in case you have not installed svn you can do so by, yes you guessed right: brew install svn) like so:

svn co https://yarp0.svn.sourceforge.net/svnroot/yarp0/trunk/yarp2 yarp2

Download the latest ACE version (I use 6.0.0, ACE only) (thanks to http://www.trinitycore.org/w/How-to:Mac for some hints):

curl http://download.dre.vanderbilt.edu/previous_versions/ACE-6.0.0.tar.gz -o ACE-6.0.0.tar.gz
tar -xzf ACE-6.0.0.tar.gz
cd ACE_wrappers
export ACE_ROOT=$(pwd)
echo "export ACE_ROOT=$ACE_ROOT" >> bash_profile
echo "export LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile
echo "export DYLD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile
echo "export MACOSX_DEPLOYMENT_TARGET=10.6" >> bash_profile

Create the file ACE_wrappers/ace/config.h with this text:

#include "ace/config-macosx-snowleopard.h"

Create the file ACE_wrappers/include/makeinclude/platform_macros.GNU
with this text:

debug = 1
shared_libs = 0
static_libs = 1
include ${ACE_ROOT}/include/makeinclude/platform_macosx_snowleopard.GNU
INSTALL_PREFIX = /usr/local

In Terminal run the following to compile the library:

source bash_profile
cd ace
make -j2

I got an error at compiling that looked like this "/bin/sh^M: bad interpreter" error, it's due to the Windows new line style. You have to open that file ( add_rel_link.sh ) and save with UNIX format. (For the installation I got the same error in the file ACE_wrappers/MPC/prj_install.pl ). If everything works run the following to install the library:

sudo su
cd ..
source bash_profile
cd ace
make install
exit

This should have installed ACE now. Now go back into the yarp2 directory and run

ccmake .
# activate the math and gui things (and any other things you might want to have)
make
make test

If problems occur here check that the SVN version actually compiles on Mac here, mine did not to install the yarp library run then:

make install

This is it for now, more to come.

Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.