How to install rosjava on ROS Groovy?

asked 2014-07-17 22:28:30 -0500

sam gravatar image

updated 2014-07-18 21:24:29 -0500

I try to enter the following instructions

mkdir -p ~/code/rosjava
wstool init -j4 ~/code/rosjava/src https://raw.github.com/rosjava/rosjava/hydro/rosjava.rosinstall
cd ~/code/rosjava
rosdep update
rosdep install --from-paths src -i -y
catkin_make

When I run rosdep install, it shows the error that rosjava_messages: Cannot locate rosdep definition for [segbot_sensors]:

sam@sam:~/code/rosjava$ rosdep install --from-paths src -i -y
WARNING: Package name "swig-wx" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores.
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
rosjava_messages: Cannot locate rosdep definition for [segbot_sensors]
sam@sam:~/code/rosjava$

When I rosmake, it shows the error that Could not GET 'https://github.com/rosjava/rosjava_mvn_repo/raw/master/org/apache/commons/com.springsource.org.apache.commons.codec/1.3.0/com.springsource.org.apache.commons.codec-1.3.0.jar:

sam@sam:~/code/rosjava$ catkin_make
Base path: /home/sam/code/rosjava
Source space: /home/sam/code/rosjava/src
Build space: /home/sam/code/rosjava/build
Devel space: /home/sam/code/rosjava/devel
Install space: /home/sam/code/rosjava/install
Creating symlink "/home/sam/code/rosjava/src/CMakeLists.txt" pointing to "/opt/ros/groovy/share/catkin/cmake/toplevel.cmake"
####
#### Running command: "cmake /home/sam/code/rosjava/src -DCATKIN_DEVEL_PREFIX=/home/sam/code/rosjava/devel -DCMAKE_INSTALL_PREFIX=/home/sam/code/rosjava/install" in "/home/sam/code/rosjava/build"
####
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using CATKIN_DEVEL_PREFIX: /home/sam/code/rosjava/devel
-- Using CMAKE_PREFIX_PATH: /home/sam/code/ros_groovy/devel;/opt/ros/groovy
-- This workspace overlays: /home/sam/code/ros_groovy/devel;/opt/ros/groovy
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/sam/code/rosjava/build/test_results
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.86
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 7 packages in topological order:
-- ~~  - rosjava (metapackage)
-- ~~  - rosjava_build_tools
-- ~~  - rosjava_bootstrap
-- ~~  - rosjava_messages
-- ~~  - rosjava_core
-- ~~  - rosjava_extras
-- ~~  - zeroconf_jmdns_suite
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'rosjava'
-- ==> add_subdirectory(rosjava)
-- +++ processing catkin package: 'rosjava_build_tools'
-- ==> add_subdirectory(rosjava_build_tools)
-- +++ processing catkin package: 'rosjava_bootstrap'
-- ==> add_subdirectory(rosjava_bootstrap)
-- +++ processing catkin package: 'rosjava_messages'
-- ==> add_subdirectory(rosjava_messages)
-- +++ processing catkin package: 'rosjava_core'
-- ==> add_subdirectory(rosjava_core)
-- +++ processing catkin package: 'rosjava_extras'
-- ==> add_subdirectory(rosjava_extras)
-- +++ processing catkin package: 'zeroconf_jmdns_suite'
-- ==> add_subdirectory(zeroconf_jmdns_suite)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sam/code/rosjava/build ...
(more)
edit retag flag offensive close merge delete

Comments

Github sometimes experiences some transient errors: please try again, to see if that is the case here. If it fails to work after a few tries, that would point to some more serious issue.

gvdhoorn gravatar image gvdhoorn  ( 2014-07-18 03:47:11 -0500 )edit

I revised my original post. What's the next? Thank you~

sam gravatar image sam  ( 2014-07-18 21:24:52 -0500 )edit