Tuesday, December 20, 2011

Installing ROS on mac

The errors encountered when installing ROS in a MAC is documented here.

ROS installation in MAC

Installation of ROS in MAC
http://www.ros.org/wiki/electric/Installation/OSX

Error 1
When installing ROS in MAC, there comes a point where a number of tools are required to be installed. The installer automatically generates the scripts required to install the tools. It asks for your password. But the terminal sort of crashed and did not accept even if my password was correct.

The solution to this is we need to manually install the tools before installing ROS.

Dependencies in MAC -
sudo port install py26-pil
sudo port install py26-numpy
sudo port install google-test
sudo port install log4cxx
sudo port install boost
sudo port install py26-paramiko

run the ROS installer command from http://www.ros.org/wiki/electric/Installation/OSX

Error 2:
rosinstall command not found.
roslocate command not found


Solution:
export PATH=$PATH:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin


RXGRAPH
rosmake rxtools
Running rxgraph gives the following error 
Error - ImportError: No module named gobject

Solution
The problem here is the symbolic link to python.
make sure the link to python in /usr/bin points to /opt/local/bin/python2.6
sudo mv /usr/bin/python /usr/bin/python_old
sudo ln -fsv /opt/local/bin/python2.6 /usr/bin/python

rosdep install rxtools
rosdep install rxgraph

Make sure all the following dependencies are met
sudo port install graphviz
sudo port install py26-cairo py26-gobject py26-gtk py26-wxpython
sudo port install py26-gtk

rosdep satisfy [package_name]

http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/
http://answers.ros.org/question/1364/rxgraph-no-module-named-gobject-os-x

No comments:

Post a Comment