Code Monkey home page Code Monkey logo

destin's Introduction

OpenCog

CircleCI

This repo is no longer maintained! Please use the following, instead:

Obsolete! As of 2021, the most interesting and actively maintained parts of this git repo have been split off into their own distinct git repos. What is left here is a mish-mash of unmatained stuff that is in the process of bit-rotting. Some unit tests fail. Some unit tests won't run. Some code won't compile. Perhaps there's some good stuff in here. Perhaps it can be brought back to life and used for something or other. However... for the most part, it is obsolete.


This git repository contains the "OpenCog Framework", which has served as a (scientific, technical) laboratory for researching, exploring and learning how to integrate AI algorithms and systems into humanoid robotic systems. Most of the activity within this particular repo has focused on integrating natural language chat, common-sense reasoning, assorted learning algorithms, and motor control of humanoid robots.

A stated goal of the OpenCog project is to develop artificial general intelligence (AGI) systems. This is all and well; however, what can be found here, in this particular repo, is very far from that. The code here really is ... a laboratory for integrating various types of AI systems. As such, it is a compilation of several decades of work by a large and varying collection of students, researchers, professors and software engineers. As a laboratory, it is filled with all sorts of devices in varying states of working order, from well-polished to mostly-broken.

See also:

  • ROCCA - Rational OpenCog Controlled Agent. This is a different assemblage of assorted OpenCog components, so that they operate within Minecraft, in the OpenAI Gym. The focus is on learning with the pattern miner, and reasoning with PLN.

Overview

Most of the basic components used in OpenCog are distributed across various git repos, (mostly) grouped under https://github.com/opencog

This git repository contains a crude natural language processing pipeline, several embodied chatbots, and some control/action-selection mechanisms. These include:

  • Ghost, a Chatscript-compatible chatbot with additional capabilities for accepting visual sensory input, and for controlling robot movements.

  • OpenPsi, a model of psychological states. Its currently a mashup of two unrelated ideas: a generic rule-class action-selection and planning system, and a model of human psychological states. An open to-do item is to untangle these two.

  • An assortment of natural language processing subsystems, including:

    • Natural language generation (for expressing thoughts as sentences).
    • Natural language input (for reading and hearing).
    • Relex2logic, converting natural language to logic expressions.
    • Assorted chatbots, some of which are embodied.
    • A Lojban tool.

Prerequisites

To build and run the system here, the packages listed below are required. Users of Ubuntu may use the dependency installer from the /opencog/octool repository. Docker containers with OpenCog preconfigured can be found in the opencog/docker repo.

cogutil

Common OpenCog C++ utilities. https://github.com/opencog/cogutil It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

atomspace

OpenCog Atomspace, a sophisticated (hyper-)graph database. https://github.com/opencog/atomspace It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

cogserver

OpenCog CogServer Network Server. https://github.com/opencog/cogserver It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

attention

OpenCog Attention Allocation subsystem. https://github.com/opencog/attention It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

URE

OpenCog Unified Rule Engine. https://github.com/opencog/ure Required for PLN It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

pln

OpenCog Probabilistic Logic Networks reasoning system. https://github.com/opencog/pln It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

spacetime

OpenCog Spacetime Server - locations of objects in space and time. https://github.com/opencog/spacetime It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

ros-behavior-scripting

Visual and auditory senses, robot motor control. https://github.com/opencog/ros-behavior-scripting It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

lg-atomese

Natural Language Parser for English, Russian, other languages. Required for natural language generation, and the chatbot. https://github.com/opencog/lg-atomese It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

Building OpenCog

Perform the following steps at the shell prompt:

    cd to project root dir
    mkdir build
    cd build
    cmake ..
    make

Libraries will be built into subdirectories within build, mirroring the structure of the source directory root.

Unit tests

To build and run the unit tests, from the ./build directory enter (after building opencog as above):

    make test

destin's People

Contributors

alex-van-der-peet avatar amo3 avatar cottonaf avatar jswiergo avatar linas avatar tedyhabtegebrial avatar tpsjr7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

destin's Issues

som.py function problem

For me, running idle som.py on Ubuntu 16.04 x64 prodcues a window, as expected. Pressing <F5> in this window produces another window, which outputs an error message:

=== RESTART: /home/enoch/the_machine/destin/Destin/Bindings/Python/som.py ===

Traceback (most recent call last):
File "/home/enoch/the_machine/destin/Destin/Bindings/Python/som.py", line 41, in
dn = pd.DestinNetworkAlt(pd.W32, layers, centroids, is_uniform)
File "/home/enoch/the_machine/destin/Destin/Bindings/Python/pydestin.py", line 1668, in init
this = _pydestin.new_DestinNetworkAlt(width, layers, centroid_counts, isUniform, layer_widths, imageMode)
NotImplementedError: Wrong number or type of arguments for overloaded function 'new_DestinNetworkAlt'.
Possible C/C++ prototypes are:
DestinNetworkAlt::DestinNetworkAlt(SupportedImageWidths,unsigned int,unsigned int [],bool,unsigned int [],DstImageMode)
DestinNetworkAlt::DestinNetworkAlt(SupportedImageWidths,unsigned int,unsigned int [],bool,unsigned int [])
DestinNetworkAlt::DestinNetworkAlt(SupportedImageWidths,unsigned int,unsigned int [],bool)

Still active?

It seems like the last update was about 4 months ago, and the last diary.md entry was 3 years ago. What's the current status of this project? Is it still active?

Some unit tests do not pass (testForumateStages, testUniform)

Running testForumateStages
ni: 1, nb: 2, np: 0, ns: 3, nc: 0
assertFloatArrayEquals FAILED, line: 160, on index 0 with array length 2
expected: 2.000000e+01, actual: 9.523810e-01, difference: 1.904762e+01
FAILED
Running testUniform
assertFloatEquals FAILED, line: 278, expected: 16.666667, actual: 0.943396, difference: 1.572327e+01
FAILED

Build problem in Ubuntu

Something is preventing Bindings/Python/swig_destin_pythonPYTHON_wrap.cxx from being generated.

Same thing with Java but I've disabled it for now.

I've followed all the steps, but did however upgrade to Ubuntu 15.04 a few hours ago, hopefully that has nothing to do with this problem, I did not try building DeSTIN in v14.10. atomspace/opencog is built ok on 15.04.

...
[ 76%] Built target test
[ 79%] Building C object SOM/CMakeFiles/som.dir/cluster/src/cluster.c.o
Linking CXX shared library libsom.so
[ 79%] Built target som
Scanning dependencies of target _pydestin
make[2]: *** No rule to make target 'Bindings/Python/swig_destin_pythonPYTHON_wrap.cxx', needed by 'Bindings/Python/CMakeFiles/_pydestin.dir/swig_destin_pythonPYTHON_wrap.cxx.o'. Stop.
CMakeFiles/Makefile2:564: recipe for target 'Bindings/Python/CMakeFiles/_pydestin.dir/all' failed
make[1]: *** [Bindings/Python/CMakeFiles/_pydestin.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

Thanks in advance for any assistance!

Make dies

On Ubuntu 16.04 x64 everything in building apparently works, and make
dies with

CMakeFiles/testSOM.dir/TestSom.cpp.o: In function test_SOM_demo()': TestSom.cpp:(.text+0xb2e): undefined reference tosomcluster'
TestSom.cpp:(.text+0x1090): undefined reference to clusterdistance' TestSom.cpp:(.text+0x14e0): undefined reference toclusterdistance'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In function test_org()': TestSom.cpp:(.text+0x298f): undefined reference tosomcluster'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In function ClusterSom::distance(float*, float*)': TestSom.cpp:(.text._ZN10ClusterSom8distanceEPfS0_[_ZN10ClusterSom8distanceEPfS0_]+0x3a4): undefined reference toclusterdistance'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In function ClusterSom::train(int)': TestSom.cpp:(.text._ZN10ClusterSom5trainEi[_ZN10ClusterSom5trainEi]+0x60): undefined reference tosomcluster'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In function ClusterSom::findBestMatchingUnit(float*)': TestSom.cpp:(.text._ZN10ClusterSom20findBestMatchingUnitEPf[_ZN10ClusterSom20findBestMatchingUnitEPf]+0x281): undefined reference toclusterdistance'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In function ClusterSom::distance_coords(int, int, int, int)': TestSom.cpp:(.text._ZN10ClusterSom15distance_coordsEiiii[_ZN10ClusterSom15distance_coordsEiiii]+0x80): undefined reference toclusterdistance'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In function SomPresentor::showSimularityMap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, int, int)': TestSom.cpp:(.text._ZN12SomPresentor17showSimularityMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjii[_ZN12SomPresentor17showSimularityMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjii]+0x26e): undefined reference toclusterdistance'
collect2: error: ld returned 1 exit status
SOM/CMakeFiles/testSOM.dir/build.make:113: recipe for target 'SOM/testSOM' failed
make[2]: *** [SOM/testSOM] Error 1
CMakeFiles/Makefile2:864: recipe for target 'SOM/CMakeFiles/testSOM.dir/all' failed
make[1]: *** [SOM/CMakeFiles/testSOM.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 71%] Building CXX object Common/CMakeFiles/common.dir/VideoWriter.cpp.o
[ 72%] Building CXX object Common/CMakeFiles/common.dir/DestinTreeManager.cpp.o
[ 74%] Linking C executable test/test
[ 74%] Built target test
[ 76%] Linking CXX shared library libcommon.so
[ 76%] Built target common
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Before that, cmake . outputs

-- Configuring done

CMake Error at SOM/CMakeLists.txt:3 (add_library):
Cannot find source file:

cluster/src/cluster

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

-- Generating done

I'm using cmake 3.5.1 and gcc 5.4.0

What am I doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.