ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is not related to KnowRob but a problem with Prolog or your test files. You'll need to check if test.pl contains the correct predicate definitions, no syntax errors (did you get any error messages when starting Prolog?) and if the lines with definitions of e.g. cup(cup0) start with :-

This is not related to KnowRob but a problem with Prolog or your test files. You'll need to check if test.pl contains the correct predicate definitions, no syntax errors (did you get any error messages when starting Prolog?) and if the lines with definitions of e.g. cup(cup0) start with :-

EDIT When I just copy/paste your file and try it, it works for me. System configuration seems to be the same, maybe you need to check why the first output line seems to be missing in your case (..compiled...)

tenorth@lapradig6:~$ prolog -f test.pl 
% [...]/test.pl compiled 0.00 sec, 4,112 bytes
Welcome to SWI-Prolog (Multi-threaded, 32 bits, Version 5.10.4)
Copyright (c) 1990-2011 University of Amsterdam, VU Amsterdam
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.

For help, use ?- help(Topic). or ?- apropos(Word).

?- cup(cup0).
true.