Ask Your Question

Alexey Reshetnyak's profile - activity

2018-03-17 00:34:01 -0500 received badge  Famous Question (source)
2018-03-17 00:34:01 -0500 received badge  Notable Question (source)
2017-03-15 02:53:34 -0500 received badge  Self-Learner (source)
2017-03-15 02:53:34 -0500 received badge  Teacher (source)
2015-04-21 10:46:18 -0500 received badge  Famous Question (source)
2015-04-21 10:46:18 -0500 received badge  Notable Question (source)
2015-04-21 10:46:13 -0500 received badge  Popular Question (source)
2015-02-16 04:17:10 -0500 received badge  Editor (source)
2015-02-16 04:15:11 -0500 answered a question How to chain knowrob and rosjava workspaces

Hello kenari, here the steps that worked for my system: Ubuntu 14.04 LTS, Indigo:

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd ~/catkin_ws/
catkin_make
source devel/setup.bash
rosdep update
cd ~/catkin_ws/src
rosws init
wstool merge https://raw.github.com/knowrob/knowrob/indigo-devel/rosinstall/knowrob-tutorial.rosinstall
wstool update
rosdep install --ignore-src knowrob
cd ~/catkin_ws
source /home/al/rosjava/devel/setup.bash
catkin_make
source devel/setup.bash
2015-02-16 04:00:30 -0500 received badge  Famous Question (source)
2015-02-05 04:48:36 -0500 commented answer Can't run unit tests for KnowRob

Thank you! It works.

2015-02-05 02:17:27 -0500 asked a question Can't run unit tests for KnowRob

I'm trying to do so according to the documentation. For example:

rosrun rosprolog rosprolog-test comp_temporal

Warning: /home/al/catkin_ws/src/stacks/knowrob/knowrob_common/prolog/rdfs_computable.pl:546:
    Singleton variable in branch: OneOfList
ERROR: /home/al/catkin_ws/src/stacks/knowrob/comp_temporal/prolog/comp_temporal.plt:21:
    plunit:begin_tests/4: Undefined procedure: plunit:'$declare_module'/5
Warning: /home/al/catkin_ws/src/stacks/knowrob/comp_temporal/prolog/comp_temporal.plt:21:
    Goal (directive) failed: plunit:begin_tests(comp_temporal)
ERROR: /home/al/catkin_ws/src/stacks/knowrob/comp_temporal/prolog/comp_temporal.plt:107:
    PL-Unit: cannot close unit comp_temporal: no open unit
Warning: /home/al/catkin_ws/src/stacks/knowrob/comp_temporal/prolog/comp_temporal.plt:107:
    Goal (directive) failed: plunit_comp_temporal:end_tests(comp_temporal)
ERROR: Prolog initialisation failed:
ERROR: '<meta-call>'/1: Undefined procedure: plunit_comp_temporal:'unit test'/4
2015-01-27 07:06:46 -0500 received badge  Notable Question (source)
2015-01-26 02:19:56 -0500 commented answer How to chain knowrob and rosjava workspaces

It helped. But I didn't have /opt/ros directory when I built Indigo from sources. So I gave up. I installed Indigo through apt-get. Directory /opt/ros appeared in the my system. Then I installed rosjava and KnowRob from sources, the key point was to source right setup.bash. Thanks!

2015-01-25 09:58:09 -0500 received badge  Popular Question (source)
2015-01-24 07:18:13 -0500 received badge  Popular Question (source)
2015-01-23 11:05:49 -0500 commented answer Knowrob installation: failed to process package 'json_prolog_msgs'

Thank you! But it solves problem only particularly. After a command source ~/ros_catkin_ws/devel/setup.bash error with roscpp dissapeared. And I got new error about rosjava. I posted a new question.

2015-01-23 11:05:36 -0500 received badge  Scholar (source)
2015-01-23 11:01:41 -0500 asked a question How to chain knowrob and rosjava workspaces

After a succesfull installation Indigo and rosjava in Ubuntu 14.04 according to this and this instructions I got following error when I was making KnowRob from sources:

CMake Error at /home/al/ros_catkin_ws/install_isolated/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
  Could not find a package configuration file provided by
  "rosjava_build_tools" with any of the following names:

    rosjava_build_toolsConfig.cmake
    rosjava_build_tools-config.cmake

  Add the installation prefix of "rosjava_build_tools" to CMAKE_PREFIX_PATH
  or set "rosjava_build_tools_DIR" to a directory containing one of the above
  files.  If "rosjava_build_tools" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/al/ros_catkin_ws/build_isolated/knowrob_common/CMakeFiles/CMakeOutput.log".
See also "/home/al/ros_catkin_ws/build_isolated/knowrob_common/CMakeFiles/CMakeError.log".
<== Failed to process package 'knowrob_common': 
  Command '/home/al/ros_catkin_ws/devel_isolated/rosprolog/env.sh cmake /home/al/ros_catkin_ws/src/stacks/knowrob/knowrob_common -DCATKIN_DEVEL_PREFIX=/home/al/ros_catkin_ws/devel_isolated/knowrob_common -DCMAKE_INSTALL_PREFIX=/home/al/ros_catkin_ws/install_isolated -G Unix Makefiles' returned non-zero exit status 1

I think it occures because workspaces is not chained. There is a tutorial that describes how to chain workspaces, but after a default installation (according to mentioned tutorials) we have the following directories: ~/ros_catkin_ws and ~/rosjava. It's not clear how to chain them.

2015-01-23 04:12:23 -0500 asked a question Knowrob installation: failed to process package 'json_prolog_msgs'

The folowing error occured during installation KnowRob according to this instruction:

CMake Error at /home/al/ros_catkin_ws/devel_isolated/catkin/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
  Could not find a package configuration file provided by "roscpp" with any
  of the following names:

    roscppConfig.cmake
    roscpp-config.cmake

  Add the installation prefix of "roscpp" to CMAKE_PREFIX_PATH or set
  "roscpp_DIR" to a directory containing one of the above files.  If "roscpp"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/al/ros_catkin_ws/build_isolated/json_prolog_msgs/CMakeFiles/CMakeOutput.log".
See also "/home/al/ros_catkin_ws/build_isolated/json_prolog_msgs/CMakeFiles/CMakeError.log".
<== Failed to process package 'json_prolog_msgs': 
  Command '/home/al/ros_catkin_ws/devel_isolated/message_generation/env.sh cmake /home/al/ros_catkin_ws/src/stacks/knowrob/json_prolog_msgs -DCATKIN_DEVEL_PREFIX=/home/al/ros_catkin_ws/devel_isolated/json_prolog_msgs -DCMAKE_INSTALL_PREFIX=/home/al/ros_catkin_ws/install_isolated -G Unix Makefiles' returned non-zero exit status 1

Instalation Indigo from sources according to this tutorial on Ubuntu 14.04 was successfull. May be somehow it's related with rosjava configuration?