ROS interface controlling the head+body blender_api
rig.
- Avoids adding ROS code to the blender_api python module
- Eliminates the need for other ROS nodes from having to import the blender_api python module.
$ cd your_catkin_workspace/src
$ git clone https://github.com/opencog/blender_api_msgs.git
$ pip3 install -t ../devel/lib/python2.7/dist-packages/ ./blender_api_msgs
$ cd ../
$ catkin build
The the above uses several hacks which may be painful to discover and diagnose. These are:
-
Neither
catkin_make
norcatkin build
currently supportentry_points
insetup.py
. To be more precise, it is actuallycatkin_pkg.python_setup
that does not supportentry_points
, and thus ordinary python setup is used, instead of the catkinized version. -
Next,
pip3 install
defaults to an install path in the root file system. To work around this, an explicit install path must be specified with the-t
flag. -
You might think that the correct catkin install path would be in python3.4 not python2.7 but you would be wrong: when sourcing
devel/setup.sh
, only the 2.7 path is added toPYTHONPATH
.
Start blender from the /blender_api
project. If this package was
installed with pip or setuptools, blender_api
should discover it
automatically.
Blender can be started with the autostart script:
blender -y Sophia.blend -P autostart.py
or it can be started manually, by pressing the Start Command Listener button.
Copyright (c) 2014,2015,2106,2017 Hanson Robotics