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.
-
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.
-
Clone the Intu git repository onto your local machine by running the following commands in your terminal:
git clone --branch develop --recursive git@github.com:watson-intu/self.git
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/
- Set up Visual Studio 2015.
- Open
/vs2015/self.sln
in this project. - Right click on the
self_instance
project and selectSet as startup project
. - Right click and select
Properties
. Select theDebugging
tab and set "Working Directory" to..\..
. - Select Build->Build Solution to build.
- Select Debug->Start Debugging to run.
- Set up CMake. To install CMake by using Homebrew, run
brew install cmake
.
- To install Homebrew, run the following command in your terminal: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 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)
- 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)
- 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.
- Run the following commands:
./scripts/build_linux.sh
Note: If any step below fails or errors, run: sudo apt-get update
, then repeat the step.
-
Install Raspbian Operating System onto your Raspbery Pi
-
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.
-
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.
- Navigate to the directory where you downloaded Anaconda locally.
- 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 pi@10.0.1.2:/home/pi
) If prompted, the username is pi and password is raspberry
-
Install Anaconda on your Pi and set up qiBuild.
- In a new Terminal/PuTTY window, ssh into your Pi:
ssh pi@{ip_address}
. When prompted, the username is pi and password is raspberry. - Run:
bash Anaconda2-4.2.0-Linux-x86.sh
. - 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.
- 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
-
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
. -
Run:
sudo pip install qibuild
- In a new Terminal/PuTTY window, ssh into your Pi:
-
Install the wiringPi library on the Pi.
- In a new Terminal/PuTTY window, ssh into your Pi:
ssh pi@{ip_address}
. - Navigate to your Pi's home directory by running:
cd /home/pi
. - Run:
git clone git://git.drogon.net/wiringPi
- Now navigate into the wiringPi directory by running:
cd wiringPi/
- Run:
./build
You should see a list of classes compiled and “All Done” at the end.
- In a new Terminal/PuTTY window, ssh into your Pi:
-
Build Intu on the Pi
- In your current (or a new) ssh session to the Raspberry Pi, navigate to the self directory:
cd {self root directory}
- Mark the build script as executable by running:
chmod +x scripts/build_raspi.sh
- 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
- In your current (or a new) ssh session to the Raspberry Pi, navigate to the self directory:
-
Run Intu on the Pi
-
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.
-
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.
-
Navigate to the raspi directory using:
cd {self root directory}/bin/raspi
. -
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.
./scripts/build_nao.sh
- Run the following command to install into on the given robot using scp:
./scripts/install_nao.sh [user@host]
- SSH to your robot, cd into
self\latest
and run therun_self.sh
script.
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.
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.
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:
- Click on the Menu button located on the left side of your browser.
- Click on the Configure icon (the second icon from the top, above Logs).
- Click on the
SERVICES CONFIG
button. You will be directed to a Services Config page. - Click on the + button next to the service you are configuring. An expanded view will appear.
- Enter a username and password (if the service has one). Click save.
- 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.
- 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.
- Click on the + button for TextClassifier. An expanded view will appear.
- Search for the
self_dialog
workspace key. Above it you will see am_WorkspaceId
field. Input your own workspace id in this field. Click save. - 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:
- Navigate to your Conversation service.
- Click Launch tool.
- You will be directed to your workspace dashboard.
- Click on the import icon (located next to the
Create
button). - Select the Conversation workspace json we have provided:
etc/shared/intu_conversation_v1.json
. - This Conversation workspace will automatically open once it is imported successfully.
- You may now edit or view this Conversation workspace.
Post your comments and questions and include the project-intu
and intu
tags on
dW Answers
or Stack Overflow.