Skip to content

Instantly share code, notes, and snippets.

@geekscape
Created July 31, 2016 01:16
Show Gist options
  • Save geekscape/18bb9864f80f3629f1676288fb9bb7e7 to your computer and use it in GitHub Desktop.
Save geekscape/18bb9864f80f3629f1676288fb9bb7e7 to your computer and use it in GitHub Desktop.
Mac OS X /History: Install Morse (robot simulator)
Wed 27 Jul 2016 21:33:05 AEST [andyg]
Install morse (robot simulator)
- See https://github.com/morse-simulator/morse
- See http://www.openrobots.org/morse/doc/stable/morse.html
- See http://www.openrobots.org/morse/doc/latest/user/installation.html
- See https://en.wikipedia.org/wiki/Robotics_simulator
brew switch python3 3.5.1 # for Blender
# brew switch python3 3.5.2 # back to normal !
cd ~andyg/Documents/play/morse
git clone https://github.com/morse-simulator/morse.git
cd morse
vi CMakeLists.txt
set(PythonInterp_FIND_VERSION 3.5.1)
mkdir build
cd build
cmake ..
sudo make install # Python 2
pip install virtualenv virtualenvwrapper
source /usr/local/bin/virtualenvwrapper.sh
workon cv3 # Python 3 and OpenCV 3.0.0 (but not TensorFlow)
make install # Python 3
sudo pip3 install scipy
sudo pip3 install pillow # PIL
# Nasty hack ...
cd ~/.virtualenvs/cv3/lib/python3.5/site-packages
ln -s
/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pymorse
.
cd /usr/local/share/morse/examples/tutorials/camera
morse run camera_morse.py
python3 camera_pymorse.py
# http://www.openrobots.org/morse/doc/1.1/_sources/user/faq.txt # Issues ?
# export
PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.5:/usr/local/lib/python3.5/site-packages
morse check
cd ~andyg/Documents/play/morse
morse create hello_robot
morse run hello_robot
cd hello_robot/scripts
./hello_robot_client.py # external Python script control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment