Ask Your Question
0

Failed to launch visualization module in knowrob tutorials

asked 2012-08-21 04:26:32 -0600

Al-Moadhen gravatar image

updated 2012-08-21 04:29:00 -0600

Hello Please I have problem to launch the visualization module in knowrob tutorials, where I use the command visualisation_canvas(C)., I get the following error: Segmentation fault. Please if you can help me to solve this error. Regards Ahmed

edit retag flag offensive close merge delete

Comments

Can you please post more information on your system? Operating system, version, Knowrob version (debian packages or SVN?), Java version (with ' java -version').

moritz gravatar imagemoritz ( 2012-08-21 12:01:04 -0600 )edit

Thank you for your replay. I use Ubuntu 11.04, ROS Electric, SVN Knowrob, and java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode). Regards Ahmed

Al-Moadhen gravatar imageAl-Moadhen ( 2012-08-21 21:28:08 -0600 )edit

The first option has the same problem, and I do not have more knowledge about the second option, Please if you can provide me more information about it. Thanks a lot.

Al-Moadhen gravatar imageAl-Moadhen ( 2012-08-23 01:51:19 -0600 )edit

Thank you for your answer, but I have the same problem. Please if you can provide me more information or links about the main requirements of visualisation_canvas and how to create prolog ROS packages that can be accessed by rosrun rosprolog rosprolog pkg-name. Thanks a lot.

Al-Moadhen gravatar imageAl-Moadhen ( 2012-08-25 01:27:30 -0600 )edit

http://ias.in.tum.de/kb/wiki/index.php/Loading_files_and_ROS_packages describes how to load Prolog and OWL files. For rosprolog, the most important is to have a file prolog/init.pl in your package that initializes everything (load prolog modules, parse OWL files etc). It will be called by rosprolog.

moritz gravatar imagemoritz ( 2012-08-25 16:10:59 -0600 )edit

Thank you very much.

Al-Moadhen gravatar imageAl-Moadhen ( 2012-08-27 01:09:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-08-22 14:45:25 -0600

moritz gravatar image

updated 2012-08-25 16:18:45 -0600

That is about the same setup I also use without problems. The only possible solution I see is to svn update KnowRob to make sure you have the latest version and do a rosmake --pre-clean knowrob.

If this runs without errors and the segfault remains, another option is to use the .deb packages for KnowRob (which are available for Natty and Electric, only some newer features might be missing). If you have installed ROS using the Ubuntu package manager, you can just execute 'sudo apt-get install ros-electric-knowrob' and you should get the binary packages of KnowRob installed. You'll maybe need to remove the SVN version from your ROS_PACKAGE_PATH so that the binary version is used.

You can also try to run 'rosrun rosprolog rosprolog mod_vis' and then launch the visualization canvas. This would rule out problems related to the knowrob_tutorials package

edit flag offensive delete link more

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: 2012-08-21 04:26:32 -0600

Seen: 261 times

Last updated: Aug 25 '12