Use Morse to interface with Blender
Hi everybody,
I would like to use Morse to interface between ROS and the Blender Game Engine to simulate a robot that has been modeled in Blender. But I'm having problems with getting started - I think it has something to do that I have both python2.7 and python3.2 installed (more to it later).
I'm using ROS Electric on a Ubuntu 11.04 Natty and Blender 2.63. I followed the installation instructions on http://www.openrobots.org/morse/doc/stable/user/installation.html to install Morse.
Since Morse requires python3.2 it installed it via Synaptic Package Manager. The following command was used to install Morse
cmake -DCMAKE_INSTALL_PREFIX=/opt/morse -DBUILD_ROS_SUPPORT=ON -DPYMORSE_SUPPORT=ON -DCMAKE_BUILD_TYPE=RELEASE -DPYTHON3_EXECUTABLE=/usr/bin/python3 -DPYTHON_EXECUTABLE=/usr/bin/python ..
sudo make install
This worked fine but when I tried to run
morse <some_file>.blend
I got encoding errors. Since this is mentioned in the installation instructions, I downloaded python 3.2.3 source code and installed it from source using
./configure --with-wide-unicode
After setting the PYTHONPATH accordingly, I tried to reinstall Morse but it failed due to an error with the shared library or so (I don't know the exact error message anymore).
I was able to install Morse after I reconfigured and reinstalled python using
./configure --enable-shared --with-wide-unicode --with-system-expat --with-system-ffi
Now, when I want to run
morse <some_file>.blend
I get the following error message
Traceback (most recent call last):
File "/opt/morse/bin/morse", line 32, in <module>
import tempfile
File "/usr/local/lib/python3.2/tempfile.py", line 37, in <module>
from random import Random as _Random
File "/usr/local/lib/python3.2/random.py", line 43, in <module>
from os import urandom as _urandom
ImportError: cannot import name urandom
Can anyone help me with this?
Best regards, Felix
Please always tag your questions appropriately to make sure the right people get notified.