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

knowrob visualisation_canvas

asked 2015-01-16 20:29:29 -0600

Dongho gravatar image

updated 2015-01-17 21:58:50 -0600

130s gravatar image

I faced similar problem while running the visualisation_canvas to, as described in the knowrob basics tutorial. However, I keep getting this error message:

?- visualisation_canvas. ERROR: Java exception: java.lang.NoClassDefFoundError: org/knowrob/vis/MarkerVisualization Exception: (7) knowrob_vis:visualisation_canvas(_G2269) ?

I could find that MarketVisualization.java file is located at ~/knowrob/stacks/knowrob/knowrob_vis/knowrob_vis/src/main/java/org/knowrob/vis/MarkerVisualization.java

My testing environment consists of: Ubuntu 14.04, ROS indigo, java version "1.7.0_72" are installed under knowrob.

Any hint would be much appreciated. Thanks!

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2015-01-19 01:16:46 -0600

moritz gravatar image

updated 2015-01-25 10:06:14 -0600

Have you compiled your Catkin workspace using catkin_make?

EDIT: Could you please try to start KnowRob directly with knowrob_vis as argument to make sure this issue is not the problem?

rosrun rosprolog rosprolog knowrob_vis
?- visualisation_canvas.

EDIT 2: Since we regularly build KnowRob from plain Ubuntu using docker, I am quite certain that it does work on Indigo/Trusty. It's difficult to debug from remote, but rosjava on Indigo seems to cause quite some problems for people, e.g. also here and here.

Maybe the following Dockerfiles help you find the problem in your setup. Their syntax is explained here; basically, you have to run the commands in the lines starting with RUN, and instead of exporting the lines starting with ENV, you source the corresponding setup.bash as indicated in the comments. The first file installs rosjava and SWI Prolog on a fresh Ubuntu Trusty, the second one installs KnowRob on top of that.

https://github.com/knowrob/docker/blo...

https://github.com/knowrob/docker/blo...

edit flag offensive delete link more

Comments

Thank you for your advice but the new way is still shows exactly the same error message:

?- visualisation_canvas.

ERROR: Java exception: java.lang.NoClassDefFoundError: org/knowrob/vis/MarkerVisualization Exception: (7) knowrob_vis:visualisation_canvas(_G8565) ?

Note that One of my colleague installed and tried similar way on a different machine, but he faced the same error as above.

Dongho gravatar image Dongho  ( 2015-01-24 04:25:54 -0600 )edit
0

answered 2015-09-20 12:28:32 -0600

Lian Yang gravatar image

?- visualisation_server, visualisation_canvas.

Hope this helps.

edit flag offensive delete link more
0

answered 2015-01-19 03:30:36 -0600

Dongho gravatar image

Yes, we compiled all knowrob packages using catkin_make and there were no errors while the catkin_make. Any clue ?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-01-16 20:29:29 -0600

Seen: 527 times

Last updated: Sep 20 '15