### Setup opencog/learn Container for Experiments Source: https://github.com/opencog/docker/blob/master/opencog/learn/README.md Initializes a working environment within the opencog/learn container for learning experiments. This script should be run immediately after starting the container. ```shell setup-for-experiments.sh ``` -------------------------------- ### Start Cogserver and Load Datasets Source: https://github.com/opencog/docker/blob/master/opencog/lang-model/scripts/experiments/run-word-pairs/README.md This command starts the cogserver using a Guile script, which automatically loads the configured datasets. The server will then be ready to serve data to the visualizer. ```shell guile -l scm/cogserver-nav.scm ``` -------------------------------- ### Start Web Server for Demo Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Starts the Apache web server, which is required to host the web-based visualization of the word-pair dataset. ```shell sudo service apache2 start ``` -------------------------------- ### Start CogServer and Create Concept Source: https://github.com/opencog/docker/blob/master/opencog/atomspace/README.md Shows how to start the CogServer and then create a Concept atom using Guile Scheme. This requires loading both the (opencog) and (opencog cogserver) modules. ```guile (use-modules (opencog) (opencog cogserver)) (start-cogserver) (Concept "foobar" (stv 0.5 0.8)) ``` -------------------------------- ### Link Grammar Parser Setup Source: https://github.com/opencog/docker/blob/master/opencog/lang-mst/README.md Starts the Link Grammar parser using a provided demo dictionary. This command assumes the dictionary is located in the specified directory and hard-codes the RocksDB file location. ```shell cd ~ link-parser demo-dict-mpg -verbosity=3 ``` -------------------------------- ### Run opencog/learn Docker Container Source: https://github.com/opencog/docker/blob/master/opencog/learn/README.md Starts the bare opencog/learn Docker container. This command initiates the container, allowing access to its environment for further operations or experiments. ```shell ./run.sh ``` -------------------------------- ### Simplified Navigation API Usage Source: https://github.com/opencog/docker/blob/master/opencog/lang-model/scripts/experiments/run-word-pairs/README.md These Scheme examples demonstrate how to use the `pair-nav` object to find related words ('forward', 'backward') and to get the specific score ('edge-score') between two words in the dataset. ```scheme ;; Examples (pair-nav 'forward (Word "end")) (pair-nav 'backward (Word "end")) ;; Scores, from the forwards-list (pair-nav 'edge-score (Word "end") (Word "chapter")) (pair-nav 'edge-score (Word "end") (Word "notes")) (pair-nav 'edge-score (Word "end") (Word "badly")) ;; From the backwards list (pair-nav 'edge-score (Word "rear") (Word "end")) (pair-nav 'edge-score (Word "far") (Word "end")) ``` -------------------------------- ### Install Docker Prerequisites Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Installs the Docker engine on Debian-based systems. This is a prerequisite for using Docker commands. ```shell sudo apt install docker.io ``` -------------------------------- ### Start CogServer and Create Concept Source: https://github.com/opencog/docker/blob/master/indigo/ros-opencog/README.md This snippet demonstrates how to start the OpenCog CogServer and create a concept node using the Guile interpreter within the Docker environment. It requires loading the necessary OpenCog modules. ```guile (use-modules (opencog) (opencog cogserver)) (start-cogserver) (Concept "foobar" (stv 0.5 0.8)) ``` -------------------------------- ### Start CogServer and Create Concept Source: https://github.com/opencog/docker/blob/master/noetic/ros-opencog/README.md This snippet demonstrates how to start the OpenCog CogServer and create a concept node using the Guile interpreter within the Docker environment. It requires loading the necessary OpenCog modules. ```guile (use-modules (opencog) (opencog cogserver)) (start-cogserver) (Concept "foobar" (stv 0.5 0.8)) ``` -------------------------------- ### Install Docker on Debian/Ubuntu Source: https://github.com/opencog/docker/blob/master/opencog/README.md Steps to install Docker on Debian/Ubuntu systems and add the current user to the docker group for necessary permissions. Requires logging out and back in for changes to take effect. ```bash sudo apt install docker.io sudo usermod -aG docker $USER ``` -------------------------------- ### Run MST Counting Pipeline Source: https://github.com/opencog/docker/blob/master/opencog/lang-mst/README.md Executes the MST counting pipeline setup scripts. This involves navigating to the correct directory and starting the main shell script for the pipeline. ```shell cd 3-mst-parsing ./run-mst-shells.sh ``` -------------------------------- ### Access Scheme Prompt via Telnet Source: https://github.com/opencog/docker/blob/master/opencog/lang-model/scripts/experiments/run-word-pairs/README.md This sequence demonstrates how to connect to the running cogserver using telnet to access an interactive Scheme prompt. It includes a simple 'Hello world' example to verify connectivity. ```shell rlwrap telnet localhost 19014 scm (format #t "Hello world\n") ``` -------------------------------- ### Simplified Navigation API Setup Source: https://github.com/opencog/docker/blob/master/opencog/lang-model/scripts/experiments/run-word-pairs/README.md This Scheme code defines a helper function `pair-score` and then creates a navigation object `pair-nav`. The navigator uses `pair-stars` and `pair-freq` to move through the word-pair graph and retrieve related words and their scores. ```scheme ;; Examples ;; ;; Create a navigator for the given matrix and ranking objects ;; In this case, pair-stars and pair-freq ... ;; All of these arguments should be taken from a config file. ;; (define (pair-score EDGE) (pair-freq 'pair-fmi EDGE)) (define pair-nav (make-nav pair-stars 'right-duals 'left-duals pair-score 10)) ``` -------------------------------- ### Start opencog/lang-pairs Docker Container Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Starts the Docker container named 'pair-counter'. The '-i' flag keeps STDIN open and attaches a pseudo-TTY, dropping the user into a shell prompt inside the container. ```shell docker start -i pair-counter ``` -------------------------------- ### Start and Stop Arthur Head Container Scripts Source: https://github.com/opencog/docker/blob/master/indigo/arthur-dev/README.md Provides the primary shell scripts to start and halt the Arthur head development environment. `./run.sh` initiates the container, and `./stop.sh` terminates it. ```bash ./run.sh ./stop.sh ``` -------------------------------- ### Docker Port Remapping Example Source: https://github.com/opencog/docker/blob/master/indigo/README.md Illustrates an attempt to remap a large range of ports for a Docker container. This is presented as a cautionary example, highlighting potential performance degradation and management difficulties due to the creation of numerous proxy processes. ```docker -p 32768-65536:32768-65536 ``` -------------------------------- ### Start Docker Container for Counting Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Starts a Docker container named 'pair-counter' in interactive mode, providing a shell prompt within the container to begin the word-pair counting process. ```shell docker start -i pair-counter ``` -------------------------------- ### Setting up Tmux Session for ROS Development Source: https://github.com/opencog/docker/blob/master/indigo/README.md Demonstrates how to create a multi-window tmux session for managing ROS tasks within a container. This setup is for convenience during development and testing. ```shell byobu new-session -d -n 'aa' '$SHELL' tmux new-window -n 'bb' '$SHELL' tmux new-window -n 'cc' '$SHELL' tmux new-window -n 'dd' '$SHELL' echo "tmux_left=\"session\"" > $HOME/.byobu/status echo "tmux_right=\"load_average disk_io date time\"" >> $HOME/.byobu/status tmux attach ``` -------------------------------- ### Start Docker Container Source: https://github.com/opencog/docker/blob/master/opencog/lang-mst/README.md Starts the Docker container named 'mst-counter' and attaches to its standard input, output, and error streams. This drops the user into a shell prompt inside the container. ```shell docker start -i mst-counter ``` -------------------------------- ### Run Arthur Head Development Container Source: https://github.com/opencog/docker/blob/master/indigo/arthur-dev/README.md Starts the opencog/ros-arthur-dev Docker container with necessary privileged access, port mappings, and volume mounts for video, audio, and display. It maps host devices like /dev/video0 and /dev/snd into the container. ```bash xhost + sudo docker run --rm --privileged -i \ -p 33433:33433 -p 80:80 -p 9090:9090 \ -v /dev/video0:/dev/video0 -v /dev/snd:/dev/snd \ -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 \ -v /dev/dri:/dev/dri -v /dev/shm:/dev/shm \ -e DISPLAY=:0.0 -t opencog/ros-arthur-dev # When done: xhost - ``` -------------------------------- ### Configure and Run Language Learning Pipeline Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Executes a series of setup and configuration scripts for the language learning pipeline within the Docker container. This includes setting environment variables and launching a multi-terminal session. ```shell cd ~/experiments/run-1 source 0-pipeline.sh run/run-tmux.sh ``` -------------------------------- ### ROS Topic Publishing and Echoing Source: https://github.com/opencog/docker/blob/master/indigo/README.md Examples of ROS command-line tools used for publishing messages to topics and subscribing to them to display message content. These are used to test inter-container or container-to-host ROS communication. ```shell rostopic pub ``` ```shell rostopic echo /camera/face_locations ``` -------------------------------- ### Setup MST Environment Source: https://github.com/opencog/docker/blob/master/opencog/lang-mst/README.md Configures the environment for manual MST counting within the container. This involves copying experiment directories, sourcing configuration scripts, and removing unnecessary stage scripts to avoid confusion. ```shell # Everything we need has already been set up in run-1. # Leave it as-is, in case you want to experiment there. # Do the actual MST counting in run-3. # Avoid confusion by removing the config for earlier and later stages. cd ~/experiments/ cp -pr run-1 run-3 cd run-3 rm -f 2-pair-conf.sh 4-gram-conf.sh # Use the default configuration. source 0-pipeline.sh source 3-mpg-conf.sh # Remove scripts for earlier and later stages (avoid confusion) cd run rm -rf 2-word-pairs 4-gram-class ``` -------------------------------- ### Load and Configure Word Pairs Navigation Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Loads necessary Scheme scripts for navigating the word-pair dataset and defines functions for scoring and browsing pairs. This setup is used for the web demo. ```scheme (load "/home/opencog/src/cogprotolab/run-word-pairs/scm/navigate.scm") (define pair-stars asa) (define pair-freq (add-pair-freq-api pair-stars)) (define (pair-score EDGE) (pair-freq 'pair-fmi EDGE)) (define pair-nav (make-nav pair-stars 'right-duals 'left-duals pair-score 10)) ``` -------------------------------- ### Interact with CogServer via Telnet Source: https://github.com/opencog/docker/blob/master/noetic/ros-opencog/README.md This snippet shows how to connect to the running CogServer using telnet and interact with it by creating a ConceptNode. It assumes the CogServer has been started in a separate session. ```guile telnet localhost 17001 (use-modules (opencog)) (cog-node 'ConceptNode "foobar") ``` -------------------------------- ### Interact with CogServer via Telnet Source: https://github.com/opencog/docker/blob/master/indigo/ros-opencog/README.md This snippet shows how to connect to the running CogServer using telnet and interact with it by creating a ConceptNode. It assumes the CogServer has been started in a separate session. ```guile telnet localhost 17001 (use-modules (opencog)) (cog-node 'ConceptNode "foobar") ``` -------------------------------- ### Launch Blender within Docker Container Source: https://github.com/opencog/docker/blob/master/noetic/ros-blender/README.md Command to start the Blender application once inside the ROS Noetic Docker container. Blender should then display on the host desktop. ```shell blender ``` -------------------------------- ### Run Eva-Silent Docker Image for Testing Source: https://github.com/opencog/docker/blob/master/indigo/eva-silent/README.md Starts the Eva-silent Docker container and its associated ROS nodes to test the Eva robot's functionality, including vision and animation. ```shell ./run.sh ``` -------------------------------- ### Run Arthur Head Animation Docker Container Source: https://github.com/opencog/docker/blob/master/indigo/arthur-animation/README.md Starts the Arthur head in animation mode using a Docker container. This command mounts necessary host directories for graphics and shared memory, sets the DISPLAY environment variable to enable GUI output, and runs the container interactively. Ensure you run 'xhost +' before executing this command to allow GUI access. ```bash xhost + sudo docker run --rm --privileged -i \ -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 \ -v /dev/dri:/dev/dri -v /dev/shm:/dev/shm \ -e DISPLAY=:0.0 -t opencog/ros-indigo-animation xhost - ``` -------------------------------- ### Verify Word Pairs Navigation Functions Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Tests the configured word-pair navigation functions by calling them with sample words and checking for plausible output. This helps ensure the setup is correct before proceeding. ```scheme (pair-freq 'left-wild-fmi (Word "the")) (pair-nav 'forward (Word "the")) (pair-nav 'edge-score (Word "the") (Word "door")) ``` -------------------------------- ### Get Related Words (Forward and Backward) Source: https://github.com/opencog/docker/blob/master/opencog/lang-model/scripts/experiments/run-word-pairs/README.md These Scheme functions, part of a simplified navigation API, retrieve related words. 'forward' moves to words ranked higher in MI, while 'backward' moves to words ranked lower. They utilize `pair-stars` for graph traversal. ```scheme (pair-stars 'right-duals (Word "end")) (pair-stars 'left-duals (Word "end")) ``` -------------------------------- ### Start ROS Docker Containers Source: https://github.com/opencog/docker/blob/master/indigo/README.md Launches three ROS containers (`master`, `aaa`, `bbb`) connected to the 'boingo' Docker network. Ports are mapped to allow external access to ROS services, typically port 11311. ```shell docker run --net=boingo --name=master -p 11311:11311 -it opencog/ros-indigo-base docker run --net=boingo --name=aaa -p 11311:11311 -it opencog/ros-indigo-base docker run --net=boingo --name=bbb -p 11311:11311 -it opencog/ros-indigo-base ``` -------------------------------- ### Run and Stop Scripts for Docker Containers Source: https://github.com/opencog/docker/blob/master/indigo/README.md Scripts provided to manage the lifecycle of Docker containers. 'run.sh' starts the container, and 'stop.sh' halts its execution. These scripts are usually found within the subdirectory corresponding to the Docker image. ```shell # Example: run.sh # Starts the Docker container defined in the current directory. # Usage: ./run.sh # Example: stop.sh # Stops the running Docker container. # Usage: ./stop.sh ``` -------------------------------- ### Build opencog/learn Docker Image using build.sh Source: https://github.com/opencog/docker/blob/master/opencog/learn/README.md Builds the opencog/learn Docker image using a local build script. This method has a prerequisite: the base AtomSpace image must be built first from the `../atomspace` directory. ```shell ./build.sh ``` -------------------------------- ### Build opencog/learn Docker Image using docker-build.sh Source: https://github.com/opencog/docker/blob/master/opencog/learn/README.md Builds the opencog/learn Docker image by executing a script located in the parent directory. This method requires the `docker-build.sh` script to be available and executed with specific flags. ```shell ../docker-build.sh -a ../docker-build.sh -l ``` -------------------------------- ### Configure and Source Environment Variables Source: https://github.com/opencog/docker/blob/master/opencog/lang-model/scripts/experiments/run-word-pairs/README.md These shell commands are used to set up the necessary environment variables for the visualization server. Sourcing these files ensures that subsequent commands and scripts have access to the required configurations. ```shell . 0-pipeline.sh . pairs-en-conf.sh ``` -------------------------------- ### Matrix Object Documentation Access Source: https://github.com/opencog/docker/blob/master/opencog/lang-model/scripts/experiments/run-word-pairs/README.md Demonstrates how to access built-in documentation for matrix objects within the system. Users can query objects like 'pair-freq' and 'pair-stars' for descriptive information. ```APIDOC Matrix Object Documentation: (pair-freq 'help) - Provides general help information for the pair-frequency object. (pair-freq 'describe) - Offers a detailed description of the pair-frequency object's properties and methods. (pair-stars 'help) - Provides general help information for the pair-similarity-stars object. (pair-stars 'describe) - Offers a detailed description of the pair-similarity-stars object's properties and methods. ``` -------------------------------- ### Create Concept in Guile Source: https://github.com/opencog/docker/blob/master/opencog/atomspace/README.md Demonstrates how to create a basic Concept atom within the AtomSpace using Guile Scheme. This requires the (opencog) module to be loaded. ```guile (use-modules (opencog)) (Concept "foobar" (stv 0.5 0.8)) ``` -------------------------------- ### OpenCog Docker Build and Run Scripts Source: https://github.com/opencog/docker/blob/master/README.md Shell scripts to manage the building and execution of OpenCog Docker containers. `./docker-build.sh` is used for building images, with options like `-h` for help and `-a` to download all. `./run.sh` is used to execute the containers. ```shell # Build script usage examples ./docker-build.sh -h ./docker-build.sh -a # Run script usage example ./run.sh ``` -------------------------------- ### Navigate Similarity Data Wrapper Source: https://github.com/opencog/docker/blob/master/opencog/lang-model/scripts/experiments/run-word-pairs/README.md A Scheme wrapper for navigating similarity data, providing a more user-friendly interface than raw access. It defines functions to extract specific similarity metrics (fmi, vmi) and navigate through data relationships. ```scheme ;; First, build the API: ;; (define (sim-fmi EDGE) (cog-value-ref (sim-obj 'pair-similarity EDGE) 0)) (define (sim-vmi EDGE) (cog-value-ref (sim-obj 'pair-similarity EDGE) 1)) (define sim-fmi-nav (make-nav sim-stars 'right-duals 'left-duals sim-fmi 10)) (define sim-vmi-nav (make-nav sim-stars 'right-duals 'left-duals sim-vmi 10)) ;; Now, actually use the API: ;; (sim-fmi-nav 'forward (Word "end")) (sim-fmi-nav 'edge-score (Word "end") (Word "out")) ``` -------------------------------- ### Execute Semi-Automated Counting Script Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Runs the primary shell script within the Docker container that automates the word-pair counting process, including starting servers and monitoring progress. ```shell /home/opencog/count-pairs.sh ``` -------------------------------- ### opencog/learn Docker Image Source: https://github.com/opencog/docker/blob/master/README.md A Docker image for the OpenCog language learning project. It depends on `opencog/atomspace:latest` and provides the basic development environment for language learning tasks. ```docker FROM opencog/atomspace:latest # ... setup for language learning development environment ... ``` -------------------------------- ### Run Cogserver for Word-Pair Counting Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Starts the Cogserver process, which is responsible for managing the AtomSpace and performing computations like word-pair counting. This is typically run from a specific tab or terminal within the container. ```shell run/2-word-pairs/run-cogserver.sh ``` -------------------------------- ### Build ROS Noetic Docker Image Source: https://github.com/opencog/docker/blob/master/noetic/ros-base/README.md Instructions for building the ROS Noetic base Docker image. Requires the ubuntu:14.04 Docker image to be pre-downloaded. ```shell # To build the image, run the build.sh file in this directory. # Ensure you have downloaded the ubuntu:14.04 image from Docker first. # Example command (actual script content not provided): # ./build.sh ``` -------------------------------- ### Run Script Source: https://github.com/opencog/docker/blob/master/noetic/ros-opencog/README.md The script to run the ros-opencog Docker container. It sets up a tmux (byobu) session for interactive testing. ```bash ./run.sh ``` -------------------------------- ### Run Script Source: https://github.com/opencog/docker/blob/master/indigo/ros-opencog/README.md The script to run the ros-opencog Docker container. It sets up a tmux (byobu) session for interactive testing. ```bash ./run.sh ``` -------------------------------- ### Build Docker Image Source: https://github.com/opencog/docker/blob/master/opencog/lang-mst/README.md Builds the Docker image for the opencog/lang-mst project. This command creates the container environment required for computing MST disjuncts. ```shell docker build -t opencog/lang-mst . ``` -------------------------------- ### Get Mutual Information (MI) for a Word Pair Source: https://github.com/opencog/docker/blob/master/opencog/lang-model/scripts/experiments/run-word-pairs/README.md This Scheme function calculates and returns the mutual information (MI) score for a given word pair. MI indicates the relatedness of the words, with higher values signifying stronger relationships. ```scheme (pair-freq 'pair-fmi (Evaluation (LgLink "ANY") (List (Word "horrible") (Word "end")))) ``` -------------------------------- ### Automated Text Counting Workflow (Shell) Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Guides on setting up a fully automated text counting process within an OpenCog Docker environment. It involves placing input text and running a script, with options for updating existing data. ```shell # Place input text corpus in the input-pages directory # Run the autorun.sh script autorun.sh # To process additional text in an existing container: # Place new text into the input-pages directory # Run autorun.sh -u to update, ensuring to remove earlier text to avoid reprocessing ``` -------------------------------- ### Link Grammar Parser Command Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Initiates the Link Grammar parser using a demo dictionary that is pre-configured to use a specific word-pair database copy. ```shell link-parser demo-dict-pair ``` -------------------------------- ### Build opencog/lang-pairs Docker Image Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Builds the Docker image for the opencog/lang-pairs container. This command should be run in the directory containing the Dockerfile. ```shell docker build -t opencog/lang-pairs . ``` -------------------------------- ### Build and Pull Docker Images Source: https://github.com/opencog/docker/blob/master/opencog/README.md Commands to manage OpenCog Docker images. Use './docker-build.sh -a' to pull images from Docker Hub and './docker-build.sh -h' to view build options. ```bash ./docker-build.sh -a ./docker-build.sh -h ``` -------------------------------- ### Copy RocksDB Database Source: https://github.com/opencog/docker/blob/master/opencog/lang-mst/README.md Copies the RocksDB database file to create a separate instance for the Link Grammar parser. This is necessary because RocksDB can only be used by one user at a time. ```shell cd ~/data cp -pr mpg-parse.rdb mpg-parse-copy.rdb ``` -------------------------------- ### Build Scripts for Docker Images Source: https://github.com/opencog/docker/blob/master/indigo/README.md Scripts used to build the Docker images for Hanson Robotics robots and their dependencies. 'build.sh' typically builds a specific image, while 'build-all.sh' orchestrates the build process for a complete set of dependent images. ```shell # Example: build.sh # Builds a specific Docker image in a subdirectory. # Usage: ./build.sh # Example: build-all.sh # Builds all dependent Docker images, starting from the base. # Usage: ./build-all.sh ``` -------------------------------- ### opencog/atomspace Docker Image Source: https://github.com/opencog/docker/blob/master/README.md This image provides the OpenCog AtomSpace, RocksDB, Cogserver, and network CogStorageNode. It depends on `opencog/opencog-deps:latest` and enables the construction of complex AtomSpace networks. ```docker FROM opencog/opencog-deps:latest # ... installation commands for AtomSpace, RocksDB, Cogserver ... ``` -------------------------------- ### Raw Similarity Data Access Source: https://github.com/opencog/docker/blob/master/opencog/lang-model/scripts/experiments/run-word-pairs/README.md Provides direct access to similarity scores and objects using Scheme functions. These calls interact with underlying data structures to retrieve similarity information. ```scheme (sim-stars 'left-basis-size) (sim-stars 'right-duals (Word "end")) (sim-obj 'describe) (sim-obj 'pair-similarity (sim-stars 'get-pair (Word "end") (Word "well"))) ``` -------------------------------- ### Build Script Source: https://github.com/opencog/docker/blob/master/indigo/ros-opencog/README.md The build script for the ros-opencog Docker image. It requires a pre-built ROS base image from the '../ros-base' directory. ```bash ./build.sh ``` -------------------------------- ### Subscribe to ROS Topic in Container 'bbb' Source: https://github.com/opencog/docker/blob/master/indigo/README.md Configures the ROS environment within the 'bbb' container by setting ROS_HOSTNAME and ROS_MASTER_URI. It then subscribes to the '/bar' topic to receive messages published by other nodes. ```shell export ROS_HOSTNAME=bbb export ROS_MASTER_URI=http://master:11311 rostopic echo /bar ``` -------------------------------- ### Create opencog/lang-pairs Docker Container Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md Creates a Docker container instance from the opencog/lang-pairs image. It maps ports for the webserver and CogServer, and runs the container in interactive mode. ```shell docker create --name pair-counter -p 8080:80 -p 17002:17002 -it opencog/lang-pairs ``` -------------------------------- ### Build Script Source: https://github.com/opencog/docker/blob/master/noetic/ros-opencog/README.md The build script for the ros-opencog Docker image. It requires a pre-built ROS base image from the '../ros-base' directory. ```bash ./build.sh ``` -------------------------------- ### Publish ROS Topic from Container 'aaa' Source: https://github.com/opencog/docker/blob/master/indigo/README.md Configures the ROS environment within the 'aaa' container by setting ROS_HOSTNAME and ROS_MASTER_URI. It then publishes a message to the '/bar' topic at a rate of 5 Hz. ```shell export ROS_HOSTNAME=aaa export ROS_MASTER_URI=http://master:11311 rostopic pub -r 5 /bar std_msgs/String '{data: olaaa}' ``` -------------------------------- ### Interact with CogServer via Telnet Source: https://github.com/opencog/docker/blob/master/opencog/atomspace/README.md Demonstrates interacting with a running CogServer using telnet and the SCM client to query for a ConceptNode. This verifies CogServer functionality by checking if a previously created node exists. ```shell rlwrap telnet localhost 17001 ``` ```scm scm (cog-node 'ConceptNode "foobar") ``` -------------------------------- ### opencog/opencog-deps Docker Image Source: https://github.com/opencog/docker/blob/master/README.md The base Docker image for OpenCog, built on Ubuntu 22.04. It includes all necessary dependencies for the OpenCog project, serving as the foundation for other OpenCog images like `opencog/atomspace`. ```docker FROM ubuntu:22.04 # ... installation commands for OpenCog dependencies ... ``` -------------------------------- ### OpenCog Docker Image Dependency Structure Source: https://github.com/opencog/docker/blob/master/README.md Illustrates the hierarchical dependency structure of key OpenCog Docker images. Each image builds upon a base image, adding specific functionalities for different OpenCog components. ```docker ├─ opencog/opencog-deps ├─ opencog/atomspace ├─ opencog/learn ├─ opencog/lang-pairs ├─ opencog/lang-mst ``` -------------------------------- ### OpenCog lang-pairs Docker Container Source: https://github.com/opencog/docker/blob/master/README.md A Docker container for a stand-alone word-pair visualization demo. It processes text files to extract word-pair mutual information, which can then be viewed via a web browser pointed at the container. Requires text files as input. ```shell # Example of running the lang-pairs container (conceptual) # Assumes docker is installed and the container is built or pulled docker run -p 8080:80 opencog/lang-pairs ``` -------------------------------- ### Copy Word-Pair Database Source: https://github.com/opencog/docker/blob/master/opencog/lang-mst/README.md Copies the word-pair database from the host machine's 'data/word-pairs.rdb' to the container's expected location '/home/opencog/data/mpg-parse.rdb'. This is a crucial step for providing input data. ```shell docker container cp data/word-pairs.rdb mst-counter:/home/opencog/data/mpg-parse.rdb ``` -------------------------------- ### Rebuild opencog/learn Docker Image without cache Source: https://github.com/opencog/docker/blob/master/opencog/learn/README.md Forces a fresh build of the Docker image by adding the `--no-cache` flag to the `docker build` command. This is useful when source code or dependencies have changed and a clean build is required. ```shell docker build --no-cache . ``` -------------------------------- ### Test ROS Noetic Docker Image Source: https://github.com/opencog/docker/blob/master/noetic/ros-base/README.md Instructions for testing the ROS Noetic base Docker image. Running the provided shell script should launch a shell prompt inside the Docker container. ```shell # To verify the setup, run the run.sh shell script. # This should provide a shell prompt inside the docker container. # Example command (actual script content not provided): # ./run.sh # Once inside the container, you can start roscore: # roscore ``` -------------------------------- ### Restart CogServer with Word-Pairs Source: https://github.com/opencog/docker/blob/master/opencog/lang-pairs/README.md A utility script to restart the CogServer, loading all word-pairs into the AtomSpace. It provides a Guile prompt for interactive exploration but does not perform MST processing. ```shell run-common/cogserver-mst.scm ``` -------------------------------- ### Build Eva-Silent Docker Image Source: https://github.com/opencog/docker/blob/master/indigo/eva-silent/README.md Executes the build script for the Eva-silent Docker image. Requires the 'ros-incog-blender' image to be built beforehand. ```shell ./build.sh ```