Ask Your Question
1

knowrob visualisation_canvas

asked 2011-04-07 21:03:58 -0600

Mate Wolfram gravatar image

I'm trying to get the visualisation_canvas to run, as described in the knowrob basics tutorial. However, I keep getting this error message:

[1] ?- visualisation_canvas(C). ERROR: Unhandled exception: jpl:jFindClass/2: Undefined procedure: jpl:jni_func/3

Tried it on cturtle and diamondback (on 2 different machines), same result.

Any hint would be much appreciated. Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2011-05-22 05:26:33 -0600

Mate Wolfram gravatar image

The problem's resolved. A former installation of SWI-Prolog seems to have caused the trouble. Uninstalling SWI-Prolog and reinstalling knowrob's dependencies helped in my case.

edit flag offensive delete link more
1

answered 2011-04-08 02:06:31 -0600

moritz gravatar image

updated 2011-04-08 02:15:44 -0600

Hi,

this is strange - it usually works :) Which operating system and which java version do you use? (java -version)

Have you tried the following:

  • roscd jpl && make clean && make
  • rosmake knowrob
  • rosrun rosprolog rosprolog ias_knowledge_base

    ?- jpl_is_true(@(true)).

    true.

If any of the outputs sounds like an error, please copy/paste the error messages.

HTH,Moritz

edit flag offensive delete link more

Comments

the machine I can currently access is running OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1~10.04.1) OpenJDK Server VM (build 19.0-b09, mixed mode) AFAIK, the other one's got Sun JDK making jpl works fine, just a couple of warnings, no errors. rosmake knowrob works fine as well
Mate Wolfram gravatar imageMate Wolfram ( 2011-04-10 08:20:28 -0600 )edit
on 'rosrun rosprolog rosprolog ias_knowledge_base' I get the following errors:
Mate Wolfram gravatar imageMate Wolfram ( 2011-04-10 08:21:11 -0600 )edit
ERROR: /home/mate/robotics/ros-external/knowrob/semweb/prolog/init.pl:22: '$open_shared_object'/3: libjava.so: cannot open shared object file: No such file or directory
Mate Wolfram gravatar imageMate Wolfram ( 2011-04-10 08:21:39 -0600 )edit
ERROR:/home/mate/robotics/ros-external/knowrob/semweb/prolog/init.pl:22: /home/mate/robotics/ros-external/knowrob/3rdparty/jpl/prolog/jpl.pl:4643: Initialization goal raised exception: library `java' does not exist (Please add directory holding libjava.so to $LD_LIBRARY_PATH)
Mate Wolfram gravatar imageMate Wolfram ( 2011-04-10 08:22:45 -0600 )edit
ERROR: /home/mate/robotics/ros-external/knowrob/semweb/prolog/init.pl:23: jpl:jpl_set_default_jvm_opts/1: Undefined procedure: jpl:jni_set_default_jvm_opts/2
Mate Wolfram gravatar imageMate Wolfram ( 2011-04-10 08:22:59 -0600 )edit
Warning: /home/mate/robotics/ros-external/knowrob/semweb/prolog/init.pl:23: Goal (directive) failed: user:jpl_set_default_jvm_opts([-Xmx256M])
Mate Wolfram gravatar imageMate Wolfram ( 2011-04-10 08:23:09 -0600 )edit
Then I get: ?- jpl_is_true(@(true)). true.
Mate Wolfram gravatar imageMate Wolfram ( 2011-04-10 08:23:36 -0600 )edit
I fixed the first two errors by setting LD_LIBRARY_PATH accordingly, however the third error and the warning still persist (and the visualisation_canvas still won't work ;-) )
Mate Wolfram gravatar imageMate Wolfram ( 2011-04-10 08:23:51 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-04-07 21:03:58 -0600

Seen: 451 times

Last updated: May 22 '11