<commit_before>;
; ROS robot movement module.
;
; Provides interfaces for making physical movements, and
; for saying things.

(define-module (opencog movement))

(use-modules (opencog) (opencog atom-types))

(load "movement/orchestrate.scm")

; Try loading the python code from this directory;
; else go for the install directory. This is kind-of hacky;
; is there a nicer way to load stuff?
;
; (python-eval
;    "import sys\nsys.path.insert(0, '/usr/local/share/opencog/python')\n")
;
; If roscore is not running, then the load will hang. Thus, to avoid the
; hang, we test to see if we can talk to roscore. If we cannot, then load
; only the debug interfaces.
;
(define-public start-ros-movement-node
	(python-eval "
import rosgraph
try:
    # Throw an exception if roscore is not running.
    rosgraph.Master('/rostopic').getPid()
    execfile('atomic.py')<commit_msg>Fix bad file load<commit_after>;
; ROS robot movement module.
;
; Provides interfaces for making physical movements, and
; for saying things.

(define-module (opencog movement))

(use-modules (opencog) (opencog atom-types))

(load "movement/do-movement.scm")

; Try loading the python code from this directory;
; else go for the install directory. This is kind-of hacky;
; is there a nicer way to load stuff?
;
; (python-eval
;    "import sys\nsys.path.insert(0, '/usr/local/share/opencog/python')\n")
;
; If roscore is not running, then the load will hang. Thus, to avoid the
; hang, we test to see if we can talk to roscore. If we cannot, then load
; only the debug interfaces.
;
(define-public start-ros-movement-node
	(python-eval "
import rosgraph
try:
    # Throw an exception if roscore is not running.
    rosgraph.Master('/rostopic').getPid()
    execfile('atomic.py')
{'fraction_non_alphanumeric': 0.11142857142857143, 'fraction_numerical': 0.001142857142857143, 'mean_word_length': 4.017191977077364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7200378', 'n_tokens_mistral': 571, 'n_tokens_neox': 557, 'n_words': 212}