How to run knowrob without shell but using prolog language?
If I want to load knowrob system to run prolog src to do the following thing:
owl_parser:owl_parse('/home/sam/code/ros/ai/owl/sam_world.owl', false, false, true).
How to run knowrob just loading pl file without login to a shell?
Thank you~
I follow @Lorenz answer.
I create ros package: sam_knowrob_test
my init.pl
register_ros_package(mod_vis).
register_ros_package(ias_semantic_map).
visualisation_canvas(C).
I run rosrun command,but it couldn't show Semantic map:
sam@sam:~/code/ros/ai$ rosrun rosprolog rosprolog sam_knowrob_test
% library(swi_hooks) compiled into pce_swi_hooks 0.00 sec, 3,616 bytes
% library(error) compiled into error 0.00 sec, 17,688 bytes
% library(lists) compiled into lists 0.01 sec, 41,424 bytes
% library(shlib) compiled into shlib 0.01 sec, 62,200 bytes
% library(option) compiled into swi_option 0.00 sec, 15,080 bytes
% library(process) compiled into process 0.01 sec, 93,400 bytes
% /opt/ros/electric/stacks/knowrob/rosprolog/prolog/init.pl compiled 0.01 sec, 100,848 bytes
Warning: /home/sam/code/ros/ai/knowrob/sam_knowrob_test/prolog/init.pl:1:
Redefined static procedure register_ros_package/1
Warning: /home/sam/code/ros/ai/knowrob/sam_knowrob_test/prolog/init.pl:3:
Singleton variables: [C]
% /home/sam/code/ros/ai/knowrob/sam_knowrob_test/prolog/init.pl compiled 0.00 sec, 960 bytes
?-
It also show warning:
Singleton variables: [C]
I try to run by input but nothing happened:
?- register_ros_package(mod_vis).
true .
?- register_ros_package(ias_semantic_map).
true.
?- visualisation_canvas(C).
true.
?-
Why it couldn't show semantic map?
How to fixed it?
Thank you~
sam@sam:~/code/ros/ai$ rosrun rosprolog rosprolog sam_knowrob_test
% library(swi_hooks) compiled into pce_swi_hooks 0.00 sec, 3,616 bytes
% library(error) compiled into error 0.00 sec, 17,688 bytes
% library(lists) compiled into lists 0.00 sec, 41,424 bytes
% library(shlib) compiled into shlib 0.00 sec, 62,200 bytes
% library(option) compiled into swi_option 0.01 sec, 15,080 bytes
% library(process) compiled into process 0.01 sec, 93,400 bytes
% /opt/ros/electric/stacks/knowrob/rosprolog/prolog/init.pl compiled 0.01 sec, 100,848 bytes
% library(jpl) compiled into jpl 0.02 sec, 285,496 bytes
% library(sgml) compiled into sgml 0.01 sec, 38,464 bytes
% library(quintus) compiled into quintus 0.00 sec, 21,384 bytes
% rewrite compiled into rewrite 0.00 sec, 34,736 bytes
% library(uri) compiled into uri 0.00 sec, 10,880 bytes
% library(record) compiled into record 0.00 sec, 31,072 bytes
% rdf_parser compiled into rdf_parser 0.01 sec, 145,344 bytes
% library(gensym) compiled into gensym 0.00 sec, 4,432 bytes
% rdf_triple compiled into rdf_triple 0.00 sec, 37,168 bytes
% library(rdf) compiled into rdf 0.02 sec, 271,184 bytes
% library(debug) compiled into prolog_debug 0.00 sec, 21,320 bytes
% library(assoc) compiled into assoc 0.00 sec, 22,640 bytes
% library(sgml_write) compiled into sgml_write 0.01 sec, 105,192 bytes
% library(nb_set) compiled into nb_set 0.00 sec, 5,968 bytes
% library(utf8) compiled into utf8 0.00 sec ...