Giter Site home page Giter Site logo

watson-intu / self Goto Github PK

View Code? Open in Web Editor NEW
28.0 17.0 27.0 156.35 MB

Intu is a Cognitive Embodiment Middleware for AI on the edge.

License: Other

C++ 62.58% CMake 0.97% HTML 0.09% CSS 5.61% JavaScript 0.26% C 27.26% Cuda 0.11% MATLAB 0.01% Batchfile 0.01% Makefile 0.03% Java 2.99% Objective-C 0.03% Shell 0.06% Python 0.01%
ibm-research-ai

self's Introduction

Intu

Intu is an agent based embodiment middleware for devices. It integrates inputs such as microphones, cameras, and other sensors together with cognitive services and outputs such as joints and audio outputs.

Before you begin

  • Ensure your hardware meets the following requirements:

    • Windows

      • Intel® Core 2 or AMD Athlon® 64 processor; 2 GHz or faster processor
      • Microsoft Windows 7 with Service Pack 1, Windows 8.1, or Windows 10, Windows 2013
      • 2 GB of RAM (8 GB recommended)
      • 1 GB of available hard-disk space for 32-bit installation; 1 GB of available hard-disk space for 64-bit installation; additional free space required during installation (cannot install on a volume that uses a case-sensitive file system)
      • 1024 x 768 display (1280x800 recommended) with 16-bit color and 512 MB of dedicated VRAM; 2 GB is recommended
      • OpenGL 2.0–capable system
      • CPU: SSE2 instruction set support
      • Graphics card: DX9 (shader model 3.0) or DX11 with feature level 9.3 capabilities.
      • Internet connection and registration are necessary for required software activation, validation of subscriptions, and access to online services.
    • Mac OS

      • Multicore Intel processor with 64-bit support
      • Mac OS 10.12, 10.11, 10.10, 10.9
      • 2 GB of RAM (8 GB recommended)
      • 1GB of available hard-disk space for installation; additional free space required during installation (cannot install on a volume that uses a case-sensitive file system)
      • 1024 x 768 display (1280x800 recommended) with 16-bit color and 512 MB of dedicated VRAM; 2 GB is recommended
      • OpenGL 2.0–capable system (This is must have for Unity Application)
      • CPU: SSE2 instruction set support
      • Graphics card: DX9 (shader model 3.0) or DX11 with feature level 9.3 capabilities.
      • Internet connection and registration are necessary for required software activation, membership validation, and access to online services.

Compiling Intu for various platforms

Getting the files

Clone the Intu git repository onto your local machine by running the following commands in your terminal:

Sometimes the sub-modules will not get pulled down, if so then you may need to run this git command after the one above:

  • git submodule update --init --recursive

If the above command fails, you may need to go add your public ssh key into your profile on github. See https://help.github.com/articles/signing-commits-with-gpg/

Windows

  1. Set up Visual Studio 2015.
  2. Open /vs2015/self.sln in this project.
  3. Right click on the self_instance project and select Set as startup project.
  4. Right click and select Properties. Select the Debugging tab and set "Working Directory" to ..\...
  5. Select Build->Build Solution to build.
  6. Select Debug->Start Debugging to run.

OS X

  1. Set up CMake. To install CMake by using Homebrew, run brew install cmake.
  1. Set up qiBuild.
  • pip install qibuild (NOTE: it is highly recommended to download anaconda python version 2.7 to have pip correctly configured)
  • qibuild config --wizard (use default setup for steps by pressing 1 twice)
  1. Run the following commands:
  • cd {self root directory}
  • ./scripts/build_mac.sh

This process stages the executables in the bin/mac directory on your local computer. You can change into that directory and run the unit_test and self_instance executables.

PS: If you run into issues with the build, you might have to change a couple of Boost header files, as described here: Homebrew/legacy-homebrew#27396 (specifically, you might have to replace your copy of Boost's boost/atomic/detail/cas128strong.hpp and boost/atomic/detail/gcc-atomic.hpp with the latest available in the Boost directory)

Linux

  1. Set up qibuild and CMake. You can use your Linux package manager to install CMake, and any distribution of Python (2.7 recommended) to install qibuild through pip.
  2. Run the following commands:
  • ./scripts/build_linux.sh

Raspberry Pi

Note: If any step below fails or errors, run: sudo apt-get update, then repeat the step.

  1. Install Raspbian Operating System onto your Raspbery Pi

  2. Open up a new browser window on your laptop and download Anaconda 4.2.0 For Linux Python 2.7 version.

    Make sure you download the correct version. You need the LINUX version no matter what operating system you have. Windows users may have to right click and select Save as to save the download locally.

  3. Copy Anaconda from your laptop over to the Pi. Windows users may need to download and use something like Filezilla to copy files over to the Pi.

    1. Navigate to the directory where you downloaded Anaconda locally.
    2. Copy Anaconda from your laptop over to the Pi using the following command: scp Anaconda2-4.2.0-Linux-x86.sh pi@{ip}:/home/pi (e.g. scp Anaconda2-4.2.0-Linux-x86.sh [email protected]:/home/pi) If prompted, the username is pi and password is raspberry
  4. Install Anaconda on your Pi and set up qiBuild.

    1. In a new Terminal/PuTTY window, ssh into your Pi: ssh pi@{ip_address}. When prompted, the username is pi and password is raspberry.
    2. Run: bash Anaconda2-4.2.0-Linux-x86.sh.
    3. Follow the steps on the screen to install Anaconda. When you get to the license, keep hitting Enter to jump to the bottom. Type yes to approve the license.
    4. Hit Enter to install Anaconda in the default location. Note: It may take a while for the progress to update, and if you get the following error, please ignore it.
    Anaconda2-4.2.0-Linux-x86.sh: line 484: /home/pi/anaconda2/pkgs/python-3.5.2-0/bin/python: cannot execute binary file: Exec format error
    ERROR:
    cannot execute native linux-32 binary, output from 'uname -a' is:
    Linux raspberrypi 4.4.21-v7+ #911 SMP Thu Sep 15 14:22:38 BST 2016 armv7l GNU/Linux
    
    1. Once Anaconda has successfully installed, run: sudo apt-get install python-pip cmake.

      Note: If this fails, run sudo apt-get update, and then rerun: sudo apt-get install python-pip cmake.

    2. Run: sudo pip install qibuild

  5. Install the wiringPi library on the Pi.

    1. In a new Terminal/PuTTY window, ssh into your Pi: ssh pi@{ip_address}.
    2. Navigate to your Pi's home directory by running: cd /home/pi.
    3. Run: git clone git://git.drogon.net/wiringPi
    4. Now navigate into the wiringPi directory by running: cd wiringPi/
    5. Run: ./build

    You should see a list of classes compiled and “All Done” at the end.

  6. Build Intu on the Pi

    1. In your current (or a new) ssh session to the Raspberry Pi, navigate to the self directory: cd {self root directory}
    2. Mark the build script as executable by running: chmod +x scripts/build_raspi.sh
    3. Now build the Self SDK by running: scripts/build_raspi.sh

    Note: If you have any build errors, run: scripts/clean.sh and then rerun: scripts/build_raspi.sh

  7. Run Intu on the Pi

    1. If you have a HDMI cable plugged into your Raspberry Pi, verify that the sound is set to analog. This can be done by right clicking the speaker icon at the top right hand corner of the Raspberry Pi's homescreen, and selecting analog.

    2. Verify that you have a microphone and speaker plugged into your Raspberry Pi. Note that your speaker may need to be charged before use. Make sure that it is turned on before proceeding with the next step.

    3. Navigate to the raspi directory using: cd {self root directory}/bin/raspi.

    4. Run: ./run_self.sh

This process installs Intu on the remote device whose user name and IP address you provide. You can go to the ~/self/latest directory on that device and run run_self.sh. This process was tested on Red Hat Enterprise 6.6 and 6.7.

Aldebaran Nao and Pepper robots using OS X

  1. Set up CMake.
  2. Set up qiBuild.
  3. Run the following commmands:
  • ./scripts/build_nao.sh
  1. Run the following command to install into on the given robot using scp:
  • ./scripts/install_nao.sh [user@host]
  1. SSH to your robot, cd into self\latest and run the run_self.sh script.

Getting Started

After downloading and building the code base, you can now run Intu.

Windows: To run Intu on Windows, click the play button in Visual Studio. A web browser will open.

Mac: To run Intu on Mac, from your Intu directory, navigate to the bin/mac directory and execute the following command: ./run_self.sh. A web browser will open.

Configuring Intu

If running Intu for the very first time, it will load the initial configuration from the file etc/shared/bootstrap.json. This replaces the previous body.json, but is exactly the same format. Once you run, you must use a web browser to access the dashboard end-point (e.g. http://localhost:9443/www/dashboard). Alternatively, provided your not using a remote graph, you may delete the db/knowledge.db to wipe the local graph (which will purge all other data stored in the graph). Once deleted, next time you run Intu it will reload the etc/shared/boostrap.json again.

Configuring BlueMix

While it is not required, we recommend using IBM Bluemix services. To register for a Bluemix account, go to https://console.ng.bluemix.net/registration/.

At a minimum you will need a Conversation service, a Speech to Text service, and a Text to Speech service to use Intu. If you are using IBM Bluemix's Conversation service, we have provided a sample workspace you can import and use. For further instructions on how to use this workspace, jump to the Getting Started with Conversation section below.

To configure your services:

  1. Click on the Menu button located on the left side of your browser.
  2. Click on the Configure icon (the second icon from the top, above Logs).
  3. Click on the SERVICES CONFIG button. You will be directed to a Services Config page.
  4. Click on the + button next to the service you are configuring. An expanded view will appear.
  5. Enter a username and password (if the service has one). Click save.
  6. Reminder: At a minimum you need to configure the following three services: ConversationV1, SpeechToTextV1, and TextToSpeechV1. All other services are optional but can add extra functionality to Intu.
  7. For your Conversation service, you will also need to add a workspace id. Click on the Menu button -> Configure icon (second icon from the top) -> CLASSIFIERS button. You will be directed to the Classifiers configuration page.
  8. Click on the + button for TextClassifier. An expanded view will appear.
  9. Search for the self_dialog workspace key. Above it you will see a m_WorkspaceId field. Input your own workspace id in this field. Click save.
  10. Your instance of Intu is now ready to use.

Located in the etc/shared directory is a Conversation service workspace named intu_conversation_v1.json. This workspace helps you visualize how intents, entities, and dialog are developed. You can expand on this workspace or use it as a guide for developing your own later. To import this workspace, follow these steps:

  1. Navigate to your Conversation service.
  2. Click Launch tool.
  3. You will be directed to your workspace dashboard.
  4. Click on the import icon (located next to the Create button).
  5. Select the Conversation workspace json we have provided: etc/shared/intu_conversation_v1.json.
  6. This Conversation workspace will automatically open once it is imported successfully.
  7. You may now edit or view this Conversation workspace.

Feedback

Post your comments and questions and include the project-intu and intu tags on dW Answers or Stack Overflow.

self's People

Contributors

daiki-kimura avatar impala454 avatar kbanks9 avatar mgfos207 avatar rlyle avatar takaomoriyama 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

Watchers

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

self's Issues

Dashboard conversation fails to scroll

Running Intu on a Mac with the latest build. All is fine, except that the conversation history window in the dashboard no longer scrolls (the screen shot is using Safari, but the same behavior exists with Firebox).
monitor

Intu dashboard can't be accessed remotely

Remote access to Intu dashboard is required to configure Intu on Pepper, but current Web contents for dashboard has some hard-coded entities like "localhost" or "127.0.0.1", which prevents remote access to dashboard.
A solution is proposed in #10.

Build break for macOS and Pepper

The latest snapshot shown below builds and runs successfully on my Ubuntu 14.04 environment.

commit dd0ec20
Author: Richard Lyle [email protected]
Date: Tue Aug 8 23:40:22 2017 -0500

Added error message when dependent package fails to install.

However, for macOS and Pepper, the build breaks.
Here is macOS case.

bash-3.2$ ./scripts/build_mac.sh 
Toolchain mac
Using feed from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/toolchain.xml on master
<snips>
[  8%] Building CXX object lib/cpp-sdk/src/CMakeFiles/utils.dir/utils/Config.cpp.o
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Config.cpp:19:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Config.h:22:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/IService.h:24:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic.hpp:12:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/atomic.hpp:17:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/platform.hpp:22:
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:961:64: error: no matching constructor for
      initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')
    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
                                                               ^  ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:968:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type tmp = 0;
                     ^     ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:983:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type tmp = 0;
                     ^     ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:997:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                     ^            ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:997:38: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                                     ^           ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:1013:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                     ^            ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:1013:38: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                                     ^           ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Kafka/KafkaConsumer.cpp:19:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Kafka/KafkaConsumer.h:22:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/IService.h:24:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic.hpp:12:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/atomic.hpp:17:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/platform.hpp:22:
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:961:64: error: no matching constructor for
      initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')
    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
                                                               ^  ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:968:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type tmp = 0;
                     ^     ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:983:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type tmp = 0;
                     ^     ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:997:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                     ^            ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:997:38: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                                     ^           ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:1013:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                     ^            ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:1013:38: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                                     ^           ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Graph/Graph.cpp:19:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Graph/Graph.h:22:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Graph/DataModels.h:22:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/ISerializable.h:22:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Factory.h:26:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Log.h:29:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/thread.hpp:17:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/thread/once.hpp:20:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/thread/pthread/once_atomic.hpp:20:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic.hpp:12:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/atomic.hpp:17:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/platform.hpp:22:
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:961:64: error: no matching constructor for
      initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')
    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
                                                               ^  ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:968:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type tmp = 0;
                     ^     ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:983:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type tmp = 0;
                     ^     ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:997:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                     ^            ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:997:38: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                                     ^           ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:1013:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                     ^            ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:1013:38: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                                     ^           ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Graph/DataModels.cpp:19:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Graph/DataModels.h:22:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/ISerializable.h:22:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Factory.h:26:
In file included from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Log.h:29:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/thread.hpp:17:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/thread/once.hpp:20:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/thread/pthread/once_atomic.hpp:20:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic.hpp:12:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/atomic.hpp:17:
In file included from /Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/platform.hpp:22:
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:961:64: error: no matching constructor for
      initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')
    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
                                                               ^  ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:968:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type tmp = 0;
                     ^     ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:983:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type tmp = 0;
                     ^     ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:997:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                     ^            ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:997:38: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                                     ^           ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:1013:22: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                     ^            ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:1013:38: error: no viable conversion from 'int'
      to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        storage_type expected_s = 0, desired_s = 0;
                                     ^           ~
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/Users/moriyama/dev/watson-intu/self2/packages/naoqi-sdk-2.1.4.13-mac64/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::atomics::detail::storage128_type &&' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
7 errors generated.
7 errors generated.
make[2]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/services/Graph/DataModels.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/services/Kafka/KafkaConsumer.cpp.o] Error 1
7 errors generated.
make[2]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/utils/Config.cpp.o] Error 1
7 errors generated.
make[2]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/services/Graph/Graph.cpp.o] Error 1
make[1]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/all] Error 2
make: *** [all] Error 2
[ERROR]: BuildFailed Error occurred when building project self

And this is Pepper case

bash-3.2$ ./scripts/build_nao.sh 
Toolchain nao
Using feed from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/toolchain.xml on master
<snips>
[ 10%] Building CXX object lib/cpp-sdk/src/CMakeFiles/utils.dir/utils/Config.cpp.o
In file included from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/system/error_code.hpp:18:0,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/system/system_error.hpp:14,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/exceptions.hpp:22,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/pthread/thread_data.hpp:10,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/thread_only.hpp:17,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/thread.hpp:12,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread.hpp:13,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Log.h:29,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Factory.h:26,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/ISerializable.h:22,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Graph/DataModels.h:22,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Graph/DataModels.cpp:19:
/Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/noncopyable.hpp:27:37: error: 'boost::noncopyable_::noncopyable::noncopyable()' declared with non-public access cannot be defaulted in the class body
/Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/noncopyable.hpp:28:22: error: 'boost::noncopyable_::noncopyable::~noncopyable()' declared with non-public access cannot be defaulted in the class body
In file included from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/system/error_code.hpp:18:0,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/system/system_error.hpp:14,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/exceptions.hpp:22,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/pthread/thread_data.hpp:10,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/thread_only.hpp:17,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/thread.hpp:12,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread.hpp:13,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Log.h:29,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Factory.h:26,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/ISerializable.h:22,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Graph/DataModels.h:22,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Graph/Graph.h:22,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Graph/Graph.cpp:19:
/Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/noncopyable.hpp:27:37: error: 'boost::noncopyable_::noncopyable::noncopyable()' declared with non-public access cannot be defaulted in the class body
/Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/noncopyable.hpp:28:22: error: 'boost::noncopyable_::noncopyable::~noncopyable()' declared with non-public access cannot be defaulted in the class body
In file included from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/system/error_code.hpp:18:0,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/system/system_error.hpp:14,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/exceptions.hpp:22,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/pthread/thread_data.hpp:10,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/thread_only.hpp:17,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/thread.hpp:12,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread.hpp:13,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Log.h:29,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/DataCache.h:27,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/IService.h:27,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Kafka/KafkaConsumer.h:22,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/services/Kafka/KafkaConsumer.cpp:19:
/Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/noncopyable.hpp:27:37: error: 'boost::noncopyable_::noncopyable::noncopyable()' declared with non-public access cannot be defaulted in the class body
/Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/noncopyable.hpp:28:22: error: 'boost::noncopyable_::noncopyable::~noncopyable()' declared with non-public access cannot be defaulted in the class body
In file included from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/system/error_code.hpp:18:0,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/system/system_error.hpp:14,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/exceptions.hpp:22,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/pthread/thread_data.hpp:10,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/thread_only.hpp:17,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread/thread.hpp:12,
                 from /Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/thread.hpp:13,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Log.h:29,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/DataCache.h:27,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/IService.h:27,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Config.h:22,
                 from /Users/moriyama/dev/watson-intu/self2/lib/cpp-sdk/src/utils/Config.cpp:19:
/Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/noncopyable.hpp:27:37: error: 'boost::noncopyable_::noncopyable::noncopyable()' declared with non-public access cannot be defaulted in the class body
/Users/moriyama/dev/watson-intu/self2/packages/ctc-mac64-atom-2.4.3.28/boost/include/boost-1_55/boost/noncopyable.hpp:28:22: error: 'boost::noncopyable_::noncopyable::~noncopyable()' declared with non-public access cannot be defaulted in the class body
make[2]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/services/Graph/DataModels.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/services/Kafka/KafkaConsumer.cpp.o] Error 1
make[2]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/services/Graph/Graph.cpp.o] Error 1
make[2]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/utils/Config.cpp.o] Error 1
make[1]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/all] Error 2
make: *** [all] Error 2
[ERROR]: BuildFailed Error occurred when building project self

JavaScript SDK & Python SDK Unable to Work Simultaneously

Currently trying to use the JavaScript SDK to type NLP commands that would be picked up by the Python SDK to kick off other Python processes. Unfortunately, it does not seem possible to run the two SDKs simultaneously. I am running on Ubuntu 14.04.5 in a VirtualBox system.

To recreate my situation:

  • Run a self instance.
  • Open the JavaScript SDK index.html in Google Chrome
  • Be able to communicate using the JavaScript SDK through text commands to Conversation and the Blackboard - i.e. I can see the text sent through the JavaScript SDK through the self instance terminal.
  • In another terminal, execute the python script - "Test_topic_client.py" from the Python SDK.
  • The following error shows in the console of Google Chrome (i.e. the JavaScript SDK):
Map.js:55 Uncaught TypeError: Cannot read property 'toString' of undefined
    at Map.hash (Map.js:55)
    at Map.get (Map.js:63)
    at BlackboardInstance.unsubscribeToType (Blackboard.js:114)
    at ExampleClassifier.onStop (ExampleClassifier.js:52)
    at onEvent (ClassifierManager.js:82)
    at WebSocket.TopicClientInstance.socket.onmessage (TopicClient.js:57)
  • Trying to send a message through the JavaScript SDK doesn't show any speech bubbles in the webpage, nor does it send through to the self instance.
  • Refreshing the index.html page results in the addition of the final line in the terminal window, as shown below. Note that there are ALSA errors due to running in a VirtualBox.
TopicClient Instantiated!
Topic Client is instantiated!
Connected!
On Connected function!
Sensor Manager has been instantiated!
adding sensor id: fbdedfd5-0848-4f8a-9327-635ac718a231
adding sensor id: e90156ce-412b-434c-b624-25c9eab4ed95
SpeechGesture has started!
adding gesture id: tts
WinstonHomeGesture has started!
adding gesture id: winston_home
Camera Sensor has started!
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
ExampleAgent has started!
ExampleAgent has stopped! # This line is added when JavaScript SDK Page is Refreshed.

I have tested my Python SDK, and it works fine to kick off my "winston_home" gesture when running on its own (i.e. without the JavaScript SDK running). However after the index.html page is refreshed, it appears that text is no longer transmitted to the Python SDK terminal window.

Your help is appreciated, as if this was solved we would be able to do some pretty amazing things with Intu!

Linux Installation of Intu exited with error

In the terminal the following error was shown:

[ERROR]: BuildFailed Error occurred when building project self

In the log file, the corresponding errors are shown:

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/jacobls/self/build-linux/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2034962401/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2034962401.dir/build.make CMakeFiles/cmTryCompileExec2034962401.dir/build
make[1]: Entering directory /home/jacobls/self/build-linux/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/jacobls/self/build-linux/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2034962401.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTryCompileExec2034962401.dir/CheckSymbolExists.c.o -c /home/jacobls/self/build-linux/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTryCompileExec2034962401 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2034962401.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTryCompileExec2034962401.dir/CheckSymbolExists.c.o -o cmTryCompileExec2034962401 -rdynamic CMakeFiles/cmTryCompileExec2034962401.dir/CheckSymbolExists.c.o: In function main':
CheckSymbolExists.c:(.text+0x16): undefined reference to pthread_create' collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec2034962401] Error 1 make[1]: Leaving directory /home/jacobls/self/build-linux/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2034962401/fast] Error 2

File /home/jacobls/self/build-linux/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/jacobls/self/build-linux/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec299438402/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec299438402.dir/build.make CMakeFiles/cmTryCompileExec299438402.dir/build
make[1]: Entering directory /home/jacobls/self/build-linux/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/jacobls/self/build-linux/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec299438402.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec299438402.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec299438402 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec299438402.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec299438402.dir/CheckFunctionExists.c.o -o cmTryCompileExec299438402 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec299438402] Error 1 make[1]: Leaving directory /home/jacobls/self/build-linux/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec299438402/fast] Error 2

Build for Raspberry hangs at [16%] Build CXX object lib/cpp-sdk/src/CMakeFiles/utils.dir/utils/Config.cpp.o

I Tried to build self on Raspberry PI 3, but it hangs at line
[16%] Build CXX object lib/cpp-sdk/src/CMakeFiles/utils.dir/utils/Config.cpp.o

Raspberry is frozen and clock stops working, but still can ping its IP.
Tried to reboot, tc_clean.sh, and build again, but it always stops at this line. #39

[ 16%] Built target sqlite
[ 16%] Building CXX object lib/cpp-sdk/src/CMakeFiles/utils.dir/utils/Config.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-6/README.Bugs for instructions.
lib/cpp-sdk/src/CMakeFiles/utils.dir/build.make:86: recipe for target 'lib/cpp-sdk/src/CMakeFiles/utils.dir/services/Graph/Graph.cpp.o' failed
make[2]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/services/Graph/Graph.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:550: recipe for target 'lib/cpp-sdk/src/CMakeFiles/utils.dir/all' failed
make[1]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
[ERROR]: BuildFailed Error occurred when building project self
pi@raspberrypi:~/self $

Camera fails to connect

Running Intu on a Mac; I recall this working in a previous release, but for some reason my camera is no longer connecting (and there are three cameras on this mac).
monitor

Web UI bouncing dropdown config boxes

To reproduce:
Go to the web GUI http://localhost:9443/www/dashboard#/ Click on the hamburger menu. Click on config. Click on any one of the sub menus. When you click on a +, the relevant text box drops down with an animation, and stays dropped down. This is good and correct
Now go to hamburger > config > any other config bubble. Click on a +.

Expected behavior: The text box drops down and stays dropped down.

Observed behaviour: The text box drops down and immediately retracts, preventing its use.

The expanding text boxes in the web UI move n times, where n is the number of config pages which you have previously opened since last reloading the page. If n is not evenly divisible by 2, then it ends up exposed and usable. If n is divisible by 2, then it ends up retracted and is unusable.

Setting credentials to connect to bluemix workspaces

I'm running mac OSX Yosemite, with self develop branch. I've been trying to follow the directions for this version to connect the conversation service to my bluemix workspaces. In RC4 I would set self_domain and self_dialog in the /bin/mac/etc/profile/body.json file. In this version there is a self/etc/shared/bootstrap.json file that contains a section to enter self_dialog, but not self_domain. The Update Readme discusses using web browser to access the dashboard end-point (e.g. http://localhost:9443/www/dashboard). When I use that web interface and I navigate to CONFIGURATION|Service Config, Add New Service Config I enter the values but it doesn't appear to actually be setting them. (also, when I click on 'services' it displays a pulldown menu but it's empty and is accompanied by a spinning wheel that never stops).

I was able to successfully configure my RC4 installation to connect conversation service to my workspaces on bluemix, but I haven't been able to here. Is it mandatory to use the web browser interface, or can I manually modify files in order to set credentials? Any steps you could recommend would be greatly appreciated.

screen shot 2017-06-06 at 9 57 03 pm

screen shot 2017-06-06 at 10 37 14 pm

No Access to Intus Gateway

Hi there,

we are trying to login to intu gateway but we are not getting forward. The login freezes and there is no connection to intu. Any idea what might be the issue?

bildschirmfoto 2017-08-25 um 19 37 31

self_instance crashed

Trying SELF on Raspberry, got several issues, From the SelfInstance.log:
[10/28/17 11:51:11.059][STAT][SensorManager] Added sensor Health, Id: c97b37dd-9f83-0107-f51e-f71aa153ae61
[10/28/17 11:51:11.059][STAT][SensorManager] Added sensor Camera, Id: 6b8c89d5-b143-8c45-52b9-69ecf82ba0c1
[10/28/17 11:51:11.059][STAT][SensorManager] Added sensor DepthCamera, Id: a6d89e45-5ba0-4d50-be44-6b5f9719c002
[10/28/17 11:51:11.059][STAT][SensorManager] Added sensor Microphone, Id: a549d757-8c63-9cde-1c05-cb15306bd6d7
[10/28/17 11:51:11.059][STAT][SensorManager] Added sensor Network, Id: 43751c9e-1569-efd3-ad5a-324473f24619

  1. [WARN][OpenCVCamera] Failed to open camera. This Raspberry has a camera, and it has been tested. But some how SELF can not open camera.
  2. ERRO][Network] OnTimeout() http://www.ibm.com
    [ERRO][Network] OnTimeout() http://www.google.com

WIFI is up and running, and others Watson services are up and running.

  1. After a while, self_instance crashed , after ¨throwing an instance of 'Json::LogicError'; what(): Type is not convertible to string

[10/28/17 11:50:16.101][STAT][Conversation] ----- Recognized Text: are you (0.697/0.460636), Language: en-US, TextId: 0x12e23b0
[10/28/17 11:50:16.769][STAT][Conversation] ---- Intent class RequestIntent Created, intent: ChitChat, confidence: 0.87 / 0.7, text: are you, TextId: 0x12e23b0
terminate called after throwing an instance of 'Json::LogicError'
what(): Type is not convertible to string
./run_self.sh: line 80: 12521 Aborted (core dumped) ./self_instance -P ${PLATFORM} "$@"

Any setting to get further debug information?

Build for Raspbery Pi fails

Linker could not find cv::CascadeClassifier::load() on Raspi.
Raspbian

$ ./scripts/build_raspi.sh
...
Scanning dependencies of target self_instance
[ 70%] Linking CXX executable sdk/bin/self_instance
sdk/lib/libself.so:  undefined reference to `cv::CascadeClassifier::load(std::string const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/self_instance.dir/build.make:137: recipe for target 'sdk/bin/self_instance' failed
make[2]: *** [sdk/bin/self_instance] Error 1
CMakeFiles/Makefile2:76: recipe for target 'CMakeFiles/self_instance.dir/all' failed
make[1]: *** [CMakeFiles/self_instance.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
[ERROR]: BuildFailed Error occurred when building project self
$ uname -a
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
$ dpkg -l "*opencv-objdetect*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version            Architecture       Description
+++-===========================-==================-==================-============================================================
ii  libopencv-objdetect-dev:arm 2.4.9.1+dfsg1-2    armhf              development files for libopencv-objdetect
un  libopencv-objdetect2.4      <none>             <none>             (no description available)
ii  libopencv-objdetect2.4v5:ar 2.4.9.1+dfsg1-2    armhf              computer vision Object Detection library

Web sockets error code: "Closed down 1006" reason: "Going Away"

I was able to successfully build RC5 on my macbook pro and I ran it using the ./run_self.sh command. I had it actively updating to command line, then I tried to run the python sdk test_topic_client.py script in a separate terminal and the following gets printed out.

TopicClient Instantiated!
Topic Client is instantiated!
Connected!
On Connected function!
Sensor Manager has been instantiated!
adding sensor id: 2ef1fbd9-af63-4191-a609-8a36b4f01be1
adding sensor id: 4d8df03d-a66d-4491-b1b2-ed4f22341bd3
SpeechGesture has started!
adding gesture id: tts
Closed down 1006 Going away

The Intu terminal prints out the following:

[06/05/17 00:32:21.348][STAT][TopicManager] Added connection 3
[06/05/17 00:32:21.348][STAT][TopicManager] Skipping authentication for connection 3
[06/05/17 00:32:21.348][STAT][TopicManager] Connection 3 authenticated, SelfId: dc4693148b0757509fb3c3014466667a
[06/05/17 00:32:21.370][STAT][SensorManager] Adding proxy sensor Camera, Id: b7abd20e-2541-41f1-ab74-4b787b4dfbc6, Override: True
[06/05/17 00:32:21.387][STAT][SensorManager] Disabling sensor Camera, Id: 09a53aa0-3154-390d-cafc-6d4a2fef96f6
[06/05/17 00:32:21.388][STAT][ImageExtractor] Removing video sensor 09a53aa0-3154-390d-cafc-6d4a2fef96f6
[06/05/17 00:32:21.388][STAT][ImageExtractor] Adding new video sensor b7abd20e-2541-41f1-ab74-4b787b4dfbc6
[06/05/17 00:32:21.388][STAT][SensorManager] Removing proxy sensor b7abd20e-2541-41f1-ab74-4b787b4dfbc6 for origin /.
[06/05/17 00:32:21.388][STAT][ImageExtractor] Removing video sensor b7abd20e-2541-41f1-ab74-4b787b4dfbc6
[06/05/17 00:32:21.388][STAT][SensorManager] Removing proxy sensor b7abd20e-2541-41f1-ab74-4b787b4dfbc6 for origin /.
[06/05/17 00:32:21.388][STAT][SensorManager] Enabling sensor Camera, Id: 09a53aa0-3154-390d-cafc-6d4a2fef96f6
[06/05/17 00:32:21.388][STAT][ImageExtractor] Adding new video sensor 09a53aa0-3154-390d-cafc-6d4a2fef96f6
./run_self.sh: line 70:  8037 Segmentation fault: 11  (core dumped) ./self_instance -P ${PLATFORM} "$@"

Intu then proceeds to automatically run again.

This error is similar to issue #2 on the python sdk page:

watson-intu/self-python-sdk#2

However the intu error message is slightly different. It seems that once again the python test script is getting hung up on the topic.start() command.

Unable to Post to Blackboard through Python Script

While running a self instance, our python script is intended to post text to the Blackboard for conversation to pick up. Unfortunately, this is not occurring, resulting in the following error:

python write_to_blackboard.py --text hello
('hostname: %s, port: %d', 'localhost', 9443)
TopicClient Instantiated!
Topic Client is instantiated!
Connected!
Trying to re instantiated Topic Client for some reason...
Closed down 1006 Going away
Trying to re instantiated Topic Client for some reason...
Exception in thread WebSocketClient:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "build/bdist.linux-x86_64/egg/ws4py/websocket.py", line 527, in run
    self.terminate()
  File "build/bdist.linux-x86_64/egg/ws4py/websocket.py", line 427, in terminate
    self.closed(1006, "Going away")
  File "/home/robonaut/self/clients/self-python-sdk/self/topics/web_socket.py", line 33, in closed
    TopicClient.get_instance().is_connected = False
  File "/home/robonaut/self/clients/self-python-sdk/self/topics/topic_client.py", line 51, in get_instance
    cls.__instance = TopicClient()
TypeError: __init__() takes exactly 4 arguments (1 given)

The full code of that Python script is found below:

#!/usr/bin/env python
import argparse
import sys
import thread
import socket
sys.path.insert(0, "/home/robonaut/self/clients/self-python-sdk/self/")
sys.path.insert(0, "/home/robonaut/self/clients/self-python-sdk/")

from blackboard.blackboard import Blackboard
from blackboard.thing import Thing
from topics.topic_client import TopicClient
#import nasa_common_logging
#from taskforce_plugin_self.tf_topic_client import TaskForceTopicClient
#from taskforce_plugin_self.blackboard_interface import BlackboardInterface

class BlackboardInterface(object):

    def __init__(self, local, text_in, is_say):
        """Constructor

        Sets up logging, gets the IBM self configuration, and sets
        the user text desired to be written to the blackboard.

        Args:
            local: bool, when true, uses a local Intu instance instead
                of the built in assumption of 'captain'
            text: string with text to write to the blackboard
        """
        #self.logger = logging.getLogger(
        #    'taskforce_plugin_self.blackboard_interface')
        #self.selfConfig = SelfUtils.get_self_config()
        self.text = text_in
        self.is_say = is_say
        if local:
            self.hostname = 'localhost'
        else:
            self.hostname = '127.0.0.1'
        self.hostname = '127.0.0.1'
        self.port = 9443

        print('hostname: %s, port: %d',
                         self.hostname, self.port)

    def write(self):
        """Do the actual write to the blackboard

        Creates the Thing object which contains the user text, then
        writes that object to the blackboard and then exits the script.
        """
        thing = Thing()
        thing.set_type('Text')
        textToAdd = {}
        textToAdd['m_Text'] = self.text
        thing.set_body(textToAdd)
        print('[Sending text:] %s', self.text)
        Blackboard.get_instance().add_thing(thing, '{}')
        thread.exit()

    def say(self):
        """Writes a Say object to the blackboard

        Creates a Thing object which contains text to have Intu speak
        out loud.
        """
        thing = Thing()
        thing.set_type('Say')
        textToAdd = {}
        textToAdd['m_Text'] = self.text
        thing.set_body(textToAdd)
        print('[Sending Say:] %s', self.text)
        Blackboard.get_instance().add_thing(thing, '{}')
        thread.exit()

    def on_connected(self):
        """Callback when topic client connects

        Upon successful connection to the intu instance, write the
        actual user requested text (provided in the constructor) to the blackboard
        """
        #self.logger.info('connected to self')
        print('[Sending Say/Text:] Connected to Self')
        if self.is_say:
            self.say()
        else:
            self.write()

    def run(self):
        """Initialize and connect the topic client

        Initializes the topic client, sets the connection callback, then starts it
        """
        #headers = [
        #    ('selfId', ''), ('token', '')]
        #topic = TopicClient.start_instance(
        #    self.hostname, self.port, headers)
        #TopicClient.get_instance().setHeaders('', '')
        #TopicClient.get_instance().set_callback(self.on_connected)
        #topic.start()
        try:
            headers = [('selfId', 'ManualAddtoBlackboard.ForGStT'), ('token', '')]
            topic = TopicClient.start_instance(self.hostname, self.port, headers)
            TopicClient.get_instance().setHeaders("", "")
            TopicClient.get_instance().set_callback(self.on_connected);
            topic.start()
        except KeyboardInterrupt:
            thread.exit()

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='Blackboard writer')
    parser.add_argument('-l', '--loglevel', type=str, choices=[
                        'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], default='INFO', help='Set the log level')
    parser.add_argument('--local', action='store_true', default=False,
                        help='Tells the script to use a local Intu instance')
    group = parser.add_mutually_exclusive_group(required=True)
    group.add_argument('-t', '--text', type=str,
                       help='Text to write to the blackboard')
    group.add_argument('-s', '--say', type=str,
                       help='Text to have the robot say')
    args, unknown_args = parser.parse_known_args(sys.argv[1:])
    #nasa_common_logging.configure_common_logging(level=args.loglevel)

    if args.say:
        bi = BlackboardInterface(args.local, args.say, True)
    else:
        bi = BlackboardInterface(args.local, args.text, False)


    bi.run()

Self is crashing every 5/10 minutes

Started last week, several Peppers running self are crashing every 5-10 minutes, nothing in the SelfInstance.log files but several core files in self/latest

~/self/latest $ ls -lta core*
-rw------- 1 nao nao 327602176 Mar 22 09:56 core.3659
-rw------- 1 nao nao 338771968 Mar 22 09:55 core.3502
-rw------- 1 nao nao 316096512 Mar 22 09:50 core.3424

Support for Identity and Access Management (IAM)

IBM announced to all Watson users that migration of all Watson services to IAM was required by October 30, 2019

I think we might need to change around these files and related files.
https://github.com/watson-intu/cpp-sdk/blob/develop/src/utils/ServiceConfig.h
https://github.com/watson-intu/cpp-sdk/blob/develop/src/utils/IService.cpp

Or we might need to change for each service.
https://github.com/watson-intu/self-plugins/tree/develop/watson/services

Intu with PR #39 stops on Raspi

If new ABI is used as in PR #39, Intu on Raspi stops at the very beginning of the initialization process.

$ ./run_self.sh 
Configuring auto start of intu
Auto start of intu is already configured!
Running self..
./run_self2.sh: line 67:  5160 Segmentation fault      (core dumped) ./self_instance -P ${PLATFORM} "$@"

Backtrace:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Core was generated by `./self_instance -P raspi'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x75e1a2f8 in boost::filesystem::path::filename() const () from /home/pi/dev/takaomoriyama/self/bin/raspi/libboost_filesystem.so.1.62.0
[Current thread is 1 (Thread 0x6fa2e000 (LWP 5160))]

Thread 2 (Thread 0x6fa25640 (LWP 5161)):
#0  0x7586fd50 in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x72dac678 in ?? () from /lib/arm-linux-gnueabihf/libusb-1.0.so.0
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x6fa2e000 (LWP 5160)):
#0  0x75e1a2f8 in boost::filesystem::path::filename() const () from /home/pi/dev/takaomoriyama/self/bin/raspi/libboost_filesystem.so.1.62.0
No symbol table info available.
#1  0x75e13310 in boost::filesystem::detail::create_directories(boost::filesystem::path const&, boost::system::error_code*) () from /home/pi/dev/takaomoriyama/self/bin/raspi/libboost_filesystem.so.1.62.0
No symbol table info available.
#2  0x76bb5370 in boost::filesystem::create_directories (p=...) at /home/pi/.local/share/qi/toolchains/raspi/boost/boost/filesystem/operations.hpp:566
No locals.
#3  0x76bb3c3c in ValidateDirectory (a_Dir="./cache") at /home/pi/dev/takaomoriyama/self/src/SelfMain.cpp:42
No locals.
#4  0x76bb4650 in SelfMain (argc=3, argv=0x7efd4d24) at /home/pi/dev/takaomoriyama/self/src/SelfMain.cpp:262
        staticData = "./etc/"
        instanceData = "./"
        platform = "raspi"
        eConsoleLevel = LL_STATUS
        eFileLevel = LL_STATUS
        newPort = 0
        newGateway = ""
        newGroupId = ""
        newName = ""
        newToken = ""
        newOrganizationId = ""
        newProfile = ""
        bSetDevVersion = false
        bEnableDevVersion = false
        configFile = ""
#5  0x000109c4 in main (argc=3, argv=0x7efd4d24) at /home/pi/dev/takaomoriyama/self/src/main.cpp:35
No locals.

This does not occur if we use old ABI by specifying "add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)" for Raspi.

RequestIntent interrupts conversation

Hi,

Using the latest develop branch the "Conversation" functionality is different than RC4 and I need some guidance.

Self will dialog with me until I give it something that is recognized as a #request intent, so, for example, using the Intu-Dialog-Starter Kit conversation, I can do the usual "hello", "how are you", "what's your name" but when I ask it "can you stand" it replies with the boilerplate from etc/bootstrap.json, which is ultimately stored in the graph in knowledge.db:

  {
     "Type_" : "RequestAgent",
     "m_EntityFilter" : [ "verb", "noun", "directionPerpendicular", "directionParallel", "adjective" ],
     "m_RequestFailedText" : [ "I do not know how to %s." ],
     "m_RequestFiles" : [ "shared/self_requests.json" ]
  }

I see in the Dashboard (by clicking the "Advanced" link on the top right of its reply) that this is recognized as a "RequestIntent" rather than (for example) "QuestionIntent". The sentence is parsed properly and I see entities tagged in the JSON:

"entities": [
    {
      "entity": "Possesive",
      "value": "you"
    },
    {
      "entity": "Possessive",
      "value": "you"
    },
    {
      "entity": "verb",
      "value": "stand"
    }
  ]

This is how the Watson Conversation "Try it out" panel parses the text as well, however, if I add a Dialog node for the "#request" intent to respond with (say) "I see you've made a request" Watson's Conversation test panel uses that response, but Self does not.

In other words, I expect Self to use the same Dialog nodes as the Watson Conversation "Try it out" panel, but the RequestAgent seems to be eating the request (and also doesn't know how to act on it).

Is this expected behaviour?

Thank you,

Martin

The speaking Dialog always says "I do not know how to "#intent" even thought Watson conversation returns correct response ( Test on Raspberry )

After configuring the bootstrap.json, I am able to connect to Watson services. However, I always get back from speaker the string " I do not know how to '#intent'. Also from the Dash board, the WatsonRequestIntent shows the string "I do not know how to [#intent name]
Clicking the [Advance] link to get the json file, look like the Conversation service returns correctly, but some how Intu does not interpret /parse correctly.
Here is from the log:
[STAT][Conversation] ----- Recognized Text: good afternoon (0.996/0.458904), Language: en-US, TextId: 0x788cc0
[STAT][Conversation] ---- Intent class RequestIntent Created, intent: Greeting, confidence: 1 / 0.7, text: thank you, TextId: 0x788cc0
[STAT][RequestAgent] Adding request goal Greeting with
[STAT][Conversation] Speaking Dialog: I do not know how to Greeting., TextId: 0x788cc0

Here is the question on dashboard:
MeText [Advanced]
good afternoon

And the reply on dashboard:

WatsonRequestIntent [Advanced]
I do not know how to Greeting.
#Greeting

Here is the Json file getting from [Advanced]
{
"GUID_": "182ddcab-8305-85ff-56c9-7c0176f2292e",
"Type_": "RequestIntent",
"m_Children": [
{
"GUID_": "2706a2ab-0b27-aa61-f027-6267198b9529",
"Type_": "Goal",
"m_Children": [
{
"GUID_": "37dae8f8-a32b-32ab-294a-ad5259d6800a",
"Type_": "Say",
"m_CreateTime": 1510087821.064,
"m_State": "PROCESSING",
"m_Text": "I do not know how to Greeting.",
"m_eCategory": 1,
"m_fImportance": 1,
"m_fLifeSpan": 3600
}
],
"m_CreateTime": 1510087821.059,
"m_DataType": "ADDED",
"m_Name": "Greeting",
"m_Params": {
"Type_": "ParamsMap",
"intent": "request",
"skill": "Greeting",
"target": "",
"verb": "Greeting"
},
"m_State": "FAILED",
"m_Text": "",
"m_eCategory": 1,
"m_fImportance": 1,
"m_fLifeSpan": 3600
}
],
"m_Confidence": 1,
"m_CreateTime": 1510087821.058,
"m_Intent": {
"confidence": 1,
"conversation": {
"context": {
"conversation_id": "0d096409-ed41-47eb-aef6-6d9f3e15fabe",
"m_EmotionalState": 0.6000000238418579,
"m_Objects": null,
"m_PreviousIntent": "",
"system": {
"node_output_map": {
"Welcome": [
0
]
},
"dialog_request_counter": 1,
"dialog_stack": [
{
"dialog_node": "Welcome"
}
],
"dialog_turn_counter": 1
}
},
"entities": [
{
"entity": "sys-time",
"value": "18:00:00"
}
],
"intents": [
{
"confidence": 1,
"intent": "Greeting"
}
],
"output": {
"text": [
"Hi! I'm Pepper! I am here to point you in the right direction. You can ask me just about anything related IBM! You can ask me things like, "What is DB2?", "Where is the executive briefing center?", "What is machine learning?" and more!"
]
}
},
"goal_params": {
"answer": {
"response": [
"Hi! I'm Pepper! I am here to point you in the right direction. You can ask me just about anything related IBM! You can ask me things like, "What is DB2?", "Where is the executive briefing center?", "What is machine learning?" and more!"
]
},
"question": {
"m_Children": [
{
"GUID
": "6a015a69-f87d-0aa9-8f12-f6de4839d591",
"Type_": "IThing",
"m_CreateTime": 1510087820.503,
"m_DataType": "CacheMiss",
"m_State": "ADDED",
"m_eCategory": 0,
"m_fImportance": 1,
"m_fLifeSpan": 3600
},
{
"GUID_": "b7ef6b61-6060-b272-6d93-5629d97c5144",
"Type_": "IThing",
"m_CreateTime": 1510087820.506,
"m_DataType": "CacheMiss",
"m_State": "ADDED",
"m_eCategory": 0,
"m_fImportance": 1,
"m_fLifeSpan": 3600
}
],
"m_ClassifyIntent": true,
"m_CreateTime": 1510087820.497,
"m_Language": "en-US",
"m_LocalDialog": false,
"m_State": "ADDED",
"m_Text": "good afternoon",
"m_eCategory": 0,
"m_fConfidence": 0.927,
"m_fImportance": 1,
"m_fLifeSpan": 3600
}
},
"text": "good afternoon",
"top_class": "Greeting"
},
"m_Parse": null,
"m_ProxyID": "10e1f725-7809-73e4-ad78-3fbbdefa2af7",
"m_Requests": [
{
"m_Target": "",
"m_Verb": "Greeting"
}
],
"m_State": "ADDED",
"m_Tags": null,
"m_Text": "good afternoon",
"m_Type": "linear",
"m_eCategory": 1,
"m_fImportance": 1,
"m_fLifeSpan": 3600,
"$$hashKey": "object:14"
}
intu_dashboard

Build for Raspberry Pi failed

Build of Intu on my RasPi stopped as follows:

$ sudo apt-get update
$ sudo apt-get install python-pip cmake
$ sudo pip install qibuild
$ sudo apt-get install libssl-dev libopencv-dev libboost-python-dev libboost-filesystem-dev libboost-thread-dev
$ git clone —recursive [email protected]:watson-intu/self.git
$ cd self
$ ./scripts/build_raspi.sh
...
[ 17%] Building CXX object lib/cpp-sdk/src/CMakeFiles/utils.dir/utils/Library.cpp.o
/home/pi/dev/watson-intu/self/lib/cpp-sdk/src/utils/Crypt.cpp:27:23: error: aggregate ?EVP_CIPHER_CTX g_EncodeContext? has incomplete type and cannot be defined
 static EVP_CIPHER_CTX g_EncodeContext;
                       ^~~~~~~~~~~~~~~
/home/pi/dev/watson-intu/self/lib/cpp-sdk/src/utils/Crypt.cpp:28:23: error: aggregate ?EVP_CIPHER_CTX g_DecodeContext? has incomplete type and cannot be defined
 static EVP_CIPHER_CTX g_DecodeContext;
                       ^~~~~~~~~~~~~~~
lib/cpp-sdk/src/CMakeFiles/utils.dir/build.make:158: recipe for target 'lib/cpp-sdk/src/CMakeFiles/utils.dir/utils/Crypt.cpp.o' failed
make[2]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/utils/Crypt.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:571: recipe for target 'lib/cpp-sdk/src/CMakeFiles/utils.dir/all' failed
make[1]: *** [lib/cpp-sdk/src/CMakeFiles/utils.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
[ERROR]: BuildFailed Error occurred when building project self

I noticed that my RasPi has openssl 1.1 installed, while Mac/Linux platform has openssl 1.0.2, and probably this is the reason of the error above.

$ dpkg -l openssl
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                  Version                 Architecture            Description
+++-=====================================-=======================-=======================-================================================================================
ii  openssl                               1.1.0f-3                armhf                   Secure Sockets Layer toolkit - cryptographic utility

Intu does not load libopencv_plugin.dylib from bin/mac/lib/libopencv_plugin.dylib on macOS

Ivan built and ran Intu on a Mac successfully. Then he made a copy of execution directory under mac/bin on another Mac, and tried to run Intu, but Intu failed to load libopencv_plugin.dylib.
Here is a part of the log file. The line number 4 and 5 are showing the case.

[08/10/17 08:19:04.177][STAT][SelfInstance] Loaded platform: ./etc/shared/platforms/mac/platform.json
[08/10/17 08:19:04.179][STAT][SelfInstance] Loaded profile: ./etc/shared/bootstrap.json
[08/10/17 08:19:04.188][STAT][Library] Dynamic library libplatform_mac.dylib loaded.
[08/10/17 08:19:04.188][ERRO][Library] dlerror: dlopen(libopencv_plugin.dylib, 1): image not found
[08/10/17 08:19:04.188][WARN][Library] Failed to load dynamic library libopencv_plugin.dylib.
[08/10/17 08:19:04.197][STAT][Library] Dynamic library librg_plugin.dylib loaded.
[08/10/17 08:19:04.206][STAT][Library] Dynamic library libwatson_plugin.dylib loaded.
[08/10/17 08:19:04.215][STAT][Library] Dynamic library libnexmo_plugin.dylib loaded.
[08/10/17 08:19:04.225][STAT][Library] Dynamic library libiva_plugin.dylib loaded.
[08/10/17 08:19:04.225][ERRO][ISerializable] Failed to find factory for {IObjectRecognition}
[08/10/17 08:19:05.453][STAT][Self] Caught signal: 2, stopping self instance.

I confirmed that this happens on the same machine when I removed build-mac/sdk/lib/libopencv_plugin.dylib. So Intu is not loading libopencv_plugin.dylib from bin/mac/lib/libopencv_plugin.dylib, but from build-mac/sdk/lib/libopencv_plugin.dylib.
This can be confirmed by the following steps.

$ git clone [email protected]:takaomoriyama/self-plugins.git                                                                                                       
% cd self                                                                                                                                                       
$ ./scripts/build_mac.sh                                                                                                                                        
...                                                                                                                                                             
                                                                                                                                                                
$ cd bin/mac                                                                                                                                                    
$ ./run_self.sh                                                                                                                                                 
Running self..                                                                                                                                                  
[08/10/17 08:18:21.107][STAT][SelfInstance] Loaded config: ./config.json                                                                                        
[08/10/17 08:18:21.107][STAT][SelfInstance] Generating new body ID: a1bc211b-28d3-454a-8480-f1d34ee65bb0                                                        
[08/10/17 08:18:21.107][STAT][SelfInstance] Starting SelfInstance                                                                                               
[08/10/17 08:18:21.111][STAT][SelfGraph] Created new model world                                                                                                
[08/10/17 08:18:21.111][STAT][SelfGraph] Graph knowledge loaded (1 verts, 0 edges local)                                                                        
[08/10/17 08:18:21.111][STAT][SelfGraph] Created new model self                                                                                                 
[08/10/17 08:18:21.111][STAT][SelfInstance] Loaded platform: ./etc/shared/platforms/mac/platform.json                                                           
[08/10/17 08:18:21.115][STAT][SelfInstance] Loaded profile: ./etc/shared/bootstrap.json                                                                         
[08/10/17 08:18:21.123][STAT][Library] Dynamic library libplatform_mac.dylib loaded.                                                                            
[08/10/17 08:18:21.130][STAT][Library] Dynamic library libopencv_plugin.dylib loaded.                                                                           
[08/10/17 08:18:21.138][STAT][Library] Dynamic library librg_plugin.dylib loaded.                                                                               
[08/10/17 08:18:21.147][STAT][Library] Dynamic library libwatson_plugin.dylib loaded.                                                                           
[08/10/17 08:18:21.160][STAT][Library] Dynamic library libnexmo_plugin.dylib loaded.                                                                            
[08/10/17 08:18:21.177][STAT][Library] Dynamic library libiva_plugin.dylib loaded.                                                                              
[08/10/17 08:18:21.177][ERRO][ISerializable] Failed to find factory for {IObjectRecognition}                                                                    
^C[08/10/17 08:18:23.300][STAT][Self] Caught signal: 2, stopping self instance.                                                                                 

OK. It successfully started. Then here is error case.

$ mv ../../build-mac/sdk/lib/libopencv_plugin.dylib ../../build-mac/sdk/lib/libopencv_plugin.dylib.save                                                         
$ ./run_self.sh                                                                                                                                                 
Running self..                                                                                                                                                  
[08/10/17 08:39:08.371][STAT][SelfInstance] Loaded config: ./config.json                                                                                        
[08/10/17 08:39:08.371][STAT][SelfInstance] Generating new body ID: 779ba731-ee91-e26e-a79a-282e93441c61                                                        
[08/10/17 08:39:08.371][STAT][SelfInstance] Starting SelfInstance                                                                                               
[08/10/17 08:39:08.373][STAT][SelfGraph] Graph knowledge loaded (2 verts, 0 edges local)                                                                        
[08/10/17 08:39:08.373][STAT][SelfInstance] Loaded platform: ./etc/shared/platforms/mac/platform.json                                                           
[08/10/17 08:39:08.375][STAT][SelfInstance] Loaded profile: ./etc/shared/bootstrap.json                                                                         
[08/10/17 08:39:08.382][STAT][Library] Dynamic library libplatform_mac.dylib loaded.                                                                            
[08/10/17 08:39:08.384][ERRO][Library] dlerror: dlopen(libopencv_plugin.dylib, 1): image not found                                                              
[08/10/17 08:39:08.384][WARN][Library] Failed to load dynamic library libopencv_plugin.dylib.                                                                   
[08/10/17 08:39:08.390][STAT][Library] Dynamic library librg_plugin.dylib loaded.                                                                               
^C[08/10/17 08:39:10.963][STAT][Self] Caught signal: 2, stopping self instance.                                                                                                                                                                                                                                          

A possible fix ight be to add lib/ directory to LD_LIBRARY_PATH as follows:

diff --git a/scripts/mac_scripts/run_self.sh b/scripts/mac_scripts/run_self.sh
index da17fdd..d957a1f 100755
--- a/scripts/mac_scripts/run_self.sh
+++ b/scripts/mac_scripts/run_self.sh
@@ -52,7 +52,7 @@ while true; do
 
        echo Running self..
        ulimit -c unlimited
-       export LD_LIBRARY_PATH=${SELF_HOME}
+       export LD_LIBRARY_PATH=${SELF_HOME}:${SELF_HOME}/lib
        cd "${SELF_HOME}"
        ./self_instance -P ${PLATFORM} "$@"
        PREV_STATUS="$(echo $?)"

Build for Raspberry Pi not compiling, detailed errors listed below

Known toolchains are:
Creating toolchain for target: raspi...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 201M 100 201M 0 0 3445k 0 0:00:59 0:00:59 --:--:-- 3910k
Installing toolchains...
Installing boost-raspi-0.1.zip into toolchain...
[WARN ]: --name ignored when using modern format
Current build worktree: /home/pi/self
Using toolchain: raspi

  • (1/1) Configuring self
    -- The C compiler identification is GNU 4.9.2
    -- The CXX compiler identification is GNU 4.9.2
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Using qibuild 3.11.14
    -- Using qibuild 3.11.14
    -- Library: tinyxml_static
    -- Library: base64
    -- Library: crossguid
    -- Library: minizip
    -- Library: kafka
    CMake Error at /usr/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
    Could NOT find OPENSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIRS)
    Call Stack (most recent call first):
    /usr/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
    /usr/local/share/cmake/qibuild/find.cmake:361 (find_package_handle_standard_args)
    /usr/local/share/cmake/qibuild/find.cmake:269 (_qi_call_fphsa)
    /usr/local/share/cmake/qibuild/modules/openssl-config.cmake:12 (export_lib)
    /usr/local/share/cmake/qibuild/internal/uselib.cmake:80 (find_package)
    /usr/local/share/cmake/qibuild/internal/uselib.cmake:158 (_qi_use_lib_get_deps)
    /usr/local/share/cmake/qibuild/stage.cmake:247 (_qi_use_lib_internal)
    lib/cpp-sdk/lib/CMakeLists.txt:39 (qi_use_lib)

CMake Error at /usr/local/share/cmake/qibuild/internal/uselib.cmake:80 (find_package):
Found package configuration file:

/usr/local/share/cmake/qibuild/modules/openssl-config.cmake

but it set OPENSSL_FOUND to FALSE so package "OPENSSL" is considered to be
NOT FOUND.
Call Stack (most recent call first):
/usr/local/share/cmake/qibuild/internal/uselib.cmake:158 (_qi_use_lib_get_deps)
/usr/local/share/cmake/qibuild/stage.cmake:247 (_qi_use_lib_internal)
lib/cpp-sdk/lib/CMakeLists.txt:39 (qi_use_lib)

-- Configuring incomplete, errors occurred!
See also "/home/pi/self/build-raspi/CMakeFiles/CMakeOutput.log".
[ERROR]: ConfigureFailed Error occurred when configuring project self

Intu on Pepper crashes when connecting to the Intu dashboard from remote Web browser

Intu dashboard is shown on the Pepper's tablet by using the following commit or new of self-plugins submodule

commit a96de3a5766da81926bc1bd71f7a631b123a4043
Author: Takao Moriyama <[email protected]>
Date:   Wed Jul 19 20:07:13 2017 +0900

    Add mechanism to avoid periodical display of logo which might stop
    showing Intu dashboard on Pepper's tablet.

(note this is not enabled by default)

However, when we connect to Intu dashboard from remote Web server (on PC or Mac), Intu sometimes crashes. Even if we successfully connect to Intu dashboard from remote Web browser, reloading the page by hitting F5 key might crash Intu.

Here is log file.

...
[09/05/17 15:02:17.628][DEBH][TopicManager] Received stream request from 192.168.9.41
[09/05/17 15:02:17.629][DEBH][TopicManager] Adding new child connection 
[09/05/17 15:02:17.630][STAT][TopicManager] Added connection 3
[09/05/17 15:02:17.630][STAT][TopicManager] Skipping authentication for connection 3
[09/05/17 15:02:17.630][STAT][TopicManager] Connection 3 authenticated, SelfId: 
[09/05/17 15:02:17.630][STAT][TopicManager] Removing previous connection 2, SelfId: 
[09/05/17 15:02:17.630][STAT][TopicManager] Removing connection 2, SelfId: 
[09/05/17 15:02:17.631][DEBH][TopicManager] Unsubcribed /. from topic agent-society.
[09/05/17 15:02:17.631][DEBH][TopicManager] Unsubcribed /. from topic blackboard.
[09/05/17 15:02:17.632][STAT][Blackboard] Removing remote subscriber /.
[09/05/17 15:02:17.632][DEBH][TopicManager] Unsubcribed /. from topic config.
[09/05/17 15:02:17.633][DEBH][TopicManager] Unsubcribed /. from topic sensor-manager.
[09/05/17 15:02:17.633][STAT][SensorManager] Removing proxy sensor asdf for origin /.
[09/05/17 15:02:17.634][DEBH][TopicManager] Unsubcribed . from topic sensor-proxy-asdf.
[09/05/17 15:02:17.634][STAT][SensorManager] Enabling sensor LocalSpeechToText, Id: 664206fb-47d5-baaa-592b-f4fbdb98a9f7
[09/05/17 15:02:17.634][STAT][NaoSpeechToText] NaoSpeechToText started
[W] 9842 alcommon.alproxy: ALProxy(ModuleName, IP, Port) is DEPRECATED. Create a broker yourself and ask it for a proxy.
[09/05/17 15:02:17.635][ERRO][Connection] SendAsync Exception: tr1::bad_weak_ptr
[09/05/17 15:02:17.635][ERRO][Connection] OnSent() error: Success
[09/05/17 15:02:17.636][DEBH][HealthAgent] Health Object: HeadYaw/Error, {
   "error" : false,
   "raiseAlert" : true,
   "sensor" : "HeadYaw/Error",
   "state" : "NEGLIGIBLE",
   "value" : 0
}
, 0
[09/05/17 15:02:17.639][DEBH][HealthAgent] Health Object: HeadPitch/Error, {
   "error" : false,
   "raiseAlert" : true,
   "sensor" : "HeadPitch/Error",
   "state" : "NEGLIGIBLE",
   "value" : 0
}
, 0
[I] 9842 qimessaging.session: Session listener created on tcp://0.0.0.0:0
[I] 9842 qimessaging.transportserver: TransportServer will listen on: tcp://127.0.0.1:48505
[I] 9842 qimessaging.transportserver: TransportServer will listen on: tcp://198.18.0.1:48505
[I] 9842 qimessaging.transportserver: TransportServer will listen on: tcp://192.168.9.11:48505
[09/05/17 15:02:17.682][DEBH][HealthAgent] Health Object: LeftElbowYaw/Error, {
   "error" : false,
   "raiseAlert" : true,
   "sensor" : "LeftElbowYaw/Error",
   "state" : "NEGLIGIBLE",
   "value" : 0
}
, 0
[09/05/17 15:02:17.683][DEBH][HealthAgent] Health Object: LeftElbowRoll/Error, {
   "error" : false,
   "raiseAlert" : true,
   "sensor" : "LeftElbowRoll/Error",
   "state" : "NEGLIGIBLE",
   "value" : 0
}
, 0
[09/05/17 15:02:17.683][DEBH][HealthAgent] Health Object: RightElbowYaw/Error, {
   "error" : false,
   "raiseAlert" : true,
   "sensor" : "RightElbowYaw/Error",
   "state" : "NEGLIGIBLE",
   "value" : 0
}
, 0
[09/05/17 15:02:17.693][DEBH][HealthAgent] Health Object: RightElbowRoll/Error, {
   "error" : false,
   "raiseAlert" : true,
   "sensor" : "RightElbowRoll/Error",
   "state" : "NEGLIGIBLE",
   "value" : 0
}
, 0
[09/05/17 15:02:17.704][DEBH][HealthAgent] Health Object: LeftHand/Error, {
   "error" : false,
   "raiseAlert" : true,
   "sensor" : "LeftHand/Error",
   "state" : "NEGLIGIBLE",
   "value" : 0
}
, 0
[09/05/17 15:02:17.715][DEBH][HealthAgent] Health Object: LeftWristYaw/Error, {
   "error" : false,
   "raiseAlert" : true,
   "sensor" : "LeftWristYaw/Error",
   "state" : "NEGLIGIBLE",
   "value" : 0
}
, 0
[09/05/17 15:02:17.725][DEBH][HealthAgent] Health Object: RightHand/Error, {
   "error" : false,
   "raiseAlert" : true,
   "sensor" : "RightHand/Error",
   "state" : "NEGLIGIBLE",
   "value" : 0
}
, 0
[09/05/17 15:02:17.739][DEBH][TopicManager] New subscriber /. to topic agent-society.
[09/05/17 15:02:17.739][DEBH][TopicManager] New subscriber /. to topic sensor-manager.
[09/05/17 15:02:17.739][DEBH][TopicManager] HandlePublishAt(), origin: /., topic: sensor-manager.
[09/05/17 15:02:17.740][STAT][SensorManager] Adding proxy sensor keyboard, Id: asdf, Override: True
A proxy sensor keyboard is added. Since keyboard has data type "TextData", all existing sensors having data type "TextData" are disabled through call to ISensor::AddOverride() for each of these sensors.
Thus, LocalSpeechToText is disabled as in the following line.
[09/05/17 15:02:17.740][STAT][SensorManager] Disabling sensor LocalSpeechToText, Id: 664206fb-47d5-baaa-592b-f4fbdb98a9f7
Thus, NaoSpeechToText is stopped while proxy sensor keyboard is activated by dashboard().
[09/05/17 15:02:17.740][STAT][NaoSpeechToText] NaoSpeechToText stopped
terminate called after throwing an instance of 'AL::ALError'
  what():      ALSpeechRecognition::unsubscribe
        ALExtractor::received unsubscribe from non-subscribed module: 
    WordRecognized
./run_self.sh: line 79:  9826 Aborted                 (core dumped) ./self_instance -P ${PLATFORM} "$@"

warning: Can't read pathname for load map: Input/output error.
Failed to read a valid object file image from memory.
Cannot access memory at address 0x3
Sleeping for 60 seconds before removing core & restart...

Build errors on RHEL and Raspberian

I'm unable to build intu on RHEL linux:
scottda [2:02 PM]
[scott@oc0486027055 scripts]$ ./build_linux.sh
Toolchain linux
No feed
No packages

Current build worktree: /home/scott/Intu/self
[ERROR]: Exception No such build config: linux

I get a similar issue on Raspberian:

Mac OSX RC5 / master / develop install: Could NOT find JSONCPP

I'm trying to install the update just posted on Mac OSX. This problem has been reproduced on both Yosemite and El Capitan

I've tried building: self-master, self-RC5, and self-develop

In each case, build fails with the error message:
[ERROR]: ConfigureFailed Error occurred when configuring project self
...
and seems to be due to the error:
Could NOT find JSONCPP (missing: JSONCPP_LIBRARIES JSONCPP_INCLUDE_DIRS)

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.