hansonrobotics / dlib_ws

ROS based workspace for dlib_puppeteering and related ROS packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dlib_ws

ROS based workspace for dlib_puppeteering and related ROS packages.

dlib_puppeteering

A ros based package for puppeteering with dlib capability is currently in progressive development.

Install and run

Open a new terminal and execute the following commands one by one.

git clone https://github.com/hansonrobotics/dlib_ws.git # Get the necessary ros packages and source codes


cd dlib_ws
catkin_make
source devel/setup.bash
cd src
pip3 install -t ../devel/lib/python2.7/dist-packages/ ./blender_api_msgs

In the same terminal or another run the command below to launch "dlib_puppeteering" package.

roslaunch dlib_puppeteering dlib_listener.launch 

To start/see the mapping/link between dlib_puppeteering and blender_api, Open a new terminal and execute the commands below.

cd ~/dlib_ws/src/blender_api
blender -y Sophia.blend -P autostart.py

NOTE: the following changes has been made to some parameters in ../blender_api/rigControl/commands.py

16 - Face shapekeys controlled by PAU

self.pauAnimationMode = 16

If 1 current shapekeys are controlled directly by PAU, otherwise by default drivers

self.shapekeysControl = 1

To Exit,

close blender GUI.
quit/stop dlib_puppeteering with CTRL+C.

Error and fix:

Unable to open /home/..dlib_ws/src/dlib_puppeteering/src/shape_predictor_68_face_landmarks.dat for reading. [dlib_puppeteering_node-3] process has died [pid 5800, exit code -6, cmd /home/..dlib_ws/devel/lib/dlib_puppeteering/dlib_puppeteering_node __name:=dlib_puppeteering_node __log:=/home/../.ros/log/746c1e46-20b2-11e6-96af-94de80604b3b/dlib_puppeteering_node-3.log]. log file: /home/../.ros/log/746c1e46-20b2-11e6-96af-94de80604b3b/dlib_puppeteering_node-3*.log

you have to download and change the location of shape_predictor_68_face_landmarks.dat

About

ROS based workspace for dlib_puppeteering and related ROS packages.


Languages

Language:C++ 97.6%Language:Python 1.3%Language:CMake 0.5%Language:Cuda 0.3%Language:C 0.2%Language:Shell 0.0%Language:Makefile 0.0%Language:Batchfile 0.0%Language:MATLAB 0.0%