File tree Expand file tree Collapse file tree 7 files changed +19
-15
lines changed Expand file tree Collapse file tree 7 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 25
25
; ; Parse ghost topic files.
26
26
; ; Ghost rules handle speech interactions.
27
27
28
- (ghost-parse-file " test.top" )
28
+ (ghost-parse-file (string-append TOPDIR " behavior/ " " test.top" ) )
29
29
30
30
31
31
; ; ----------------------------------------------
Original file line number Diff line number Diff line change 8
8
9
9
(setlocale LC_CTYPE " C" )
10
10
11
- (define PATH "../build/")
12
- ; ; (setenv "LTDL_LIBRARY_PATH" (string-append (getenv "LTDL_LIBRARY_PATH") ":"))
11
+ (define-public TOPDIR (current-filename))
12
+ (set! TOPDIR (string-drop-right TOPDIR
13
+ (-
14
+ (- (string-length TOPDIR) 1 )
15
+ (string-rindex TOPDIR #\/ )
16
+ ))
17
+ )
13
18
14
- (load-extension " libdr_roboto" " init_dr_roboto" )
15
19
16
- (add-to-load-path " /usr/local/share/opencog/scm" )
17
20
(add-to-load-path " ." )
18
- ; (use-modules (ice-9 readline)) (activate-readline )
19
- (use-modules ( opencog) )
20
- (use-modules (opencog query))
21
- (use-modules (opencog exec))
22
- (load-from-path " opencog.scm " )
21
+ (add-to-load-path " ./behavior/ " )
22
+ (add-to-load-path " /usr/local/share/ opencog/scm " )
23
+
24
+ ; Load C++ detector functions
25
+ (load-extension " libdr_roboto " " init_dr_roboto " )
23
26
24
- (include " behavior.scm" )
25
27
28
+ ; Load behavior scripts
29
+ (include " behavior/behavior.scm" )
26
30
27
31
; TODO this should be changed to a practical i/o implementation.
28
32
; this is just for testing
Original file line number Diff line number Diff line change @@ -140,7 +140,8 @@ void say(char *data)
140
140
tts.setSpeaker(FestivalTTS::speaker::DON);
141
141
tts.speak(data);
142
142
}
143
- SCM scm_say(SCM txt)
143
+
144
+ void scm_say(SCM txt)
144
145
{
145
146
say(scm_to_locale_string(txt));
146
147
}
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- cd build
3
- export LTDL_LIBRARY_PATH=$( pwd)
4
- guile -l ../behavior/dr_roboto.scm
2
+ export LTDL_LIBRARY_PATH=$( pwd) /build
3
+ guile -l dr-roboto.scm
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments