opencog / ghost_bridge

A ROS bridge between the Hanson Robotics stack and OpenCog's GHOST
GNU Affero General Public License v3.0
6 stars 11 forks source link

Effect of Ghost_bridge rules on avatar and web interface #12

Closed EskenderTamrat closed 6 years ago

EskenderTamrat commented 6 years ago

In the HR stack, I couldn't see the effect of the avatar playing the emotions I run with ghost_bridge and there is no related output on the webui.

The following is a sample rule and its response in bash.

(ghost-parse "u: (hello) ^gesture(lookLR, 0.24, 1.23, 1)")

(test-ghost "hello world")

[2018-08-06 13:21:23:296] [INFO] [gesture] (lookLR 0.24 1.23 1) [2018-08-06 13:21:23:297] [INFO] [say] (hello there) $2 = ((WordNode "hello") (WordNode "there") (Node "finished-action") )

amebel commented 6 years ago

After compiling atomspace and opencog against python 2.7 (see here for changes). Running the following rule will get the avator mouth to move, so it could be the values passed to the gesture function or some other bug.

(ghost-parse "u: (hello) world world la la la la ^gesture(lookLR, 0.24, 1.23, 1) ^keep")
(ghost "hello")
simonmekit commented 6 years ago

Running (ghost-run) command in cogserver-shell before writing a rule will create a thread (something like this: #<thread 140057868494592 (11e3380)> ) that handles the communication b/n ghost and the avatar.

Its working now in my machine. So the issue should be, even though ghost_bridge is running, ghost was not really started until (ghost-run) command issued. https://github.com/singnet/opencog/tree/master/opencog/ghost#how-to-run

amebel commented 6 years ago

@simonmekit that is partially correct