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

Cannot build rosjava (on mac) -without- ROS installed??

asked 2012-09-04 04:21:01 -0500

jrd gravatar image

updated 2014-01-28 17:13:33 -0500

ngrennan gravatar image

Hi, I am trying to build rosjava (OS X 10.6.8, 32-bit, Java 1.6 without installation of ROS) based on this rosjava tutorial.

I was successfull to install it on Ubuntu 12 with Fuerte installed, everything worked.

But now, on Mac, after running:

./gradlew install

the maven repostitory on robotbrains seems to be down, i get:

    :apache_xmlrpc_common:compileJava
Checksum missing at http://robotbrains.hideho.org/nexus/content/groups/ros-public/org/apache/commons/com.springsource.org.apache.commons.httpclient/3.1.0/com.springsource.org.apache.commons.httpclient-3.1.0.pom.sha1 due to: Connection to http://robotbrains.hideho.org refused
Checksum missing at http://robotbrains.hideho.org/nexus/content/groups/ros-public/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.pom.sha1 due to: Connection to http://robotbrains.hideho.org refused

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':apache_xmlrpc_common:compile'.
> Could not resolve group:org.apache.commons, module:com.springsource.org.apache.commons.httpclient, version:3.1.0.
  Required by:
      ros.rosjava_core:apache_xmlrpc_common:0.0.0-SNAPSHOT
   > Could not GET 'http://robotbrains.hideho.org/nexus/content/groups/ros-public/org/apache/commons/com.springsource.org.apache.commons.httpclient/3.1.0/com.springsource.org.apache.commons.httpclient-3.1.0.pom'.
> Could not resolve group:org.apache.ws.commons, module:ws-commons-util, version:1.0.1.
  Required by:
      ros.rosjava_core:apache_xmlrpc_common:0.0.0-SNAPSHOT
   > Could not GET 'http://robotbrains.hideho.org/nexus/content/groups/ros-public/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.pom'.

I found this solution but it causes these further errors:

...
:rosjava_messages:jar
:rosjava:compileJava
/Users/j/workspace/HANNS/network/rosjava/rosjava/src/main/java/org/ros/internal/node/RosoutLogger.java:36: package rosgraph_msgs does not exist
  private final Publisher<rosgraph_msgs.Log> publisher;
                                       ^
/Users/j/workspace/HANNS/network/rosjava/rosjava/src/main/java/org/ros/internal/node/RosoutLogger.java:45: package rosgraph_msgs does not exist
  public Publisher<rosgraph_msgs.Log> getPublisher() {
                                ^
/Users/j/workspace/HANNS/network/rosjava/rosjava/src/main/java/org/ros/time/ClockTopicTimeProvider.java:26: package rosgraph_msgs does not exist
import rosgraph_msgs.Clock;
                    ^
/Users/j/workspace/HANNS/network/rosjava/rosjava/src/main/java/org/ros/time/ClockTopicTimeProvider.java:36: package rosgraph_msgs does not exist
  private final Subscriber<rosgraph_msgs.Clock> subscriber;
                                        ^
/Users/j/workspace/HANNS/network/rosjava/rosjava/src/main/java/org/ros/time/ClockTopicTimeProvider.java:39: package rosgraph_msgs does not exist
  private rosgraph_msgs.Clock clock;
                       ^
...

(and 22 similar ones)

So, this means that on this maven repository are some old libraries, or rosjava is not that standalone and needs ROS installation on a computer too? :(

(Unfortunately, I cannot upgrade Java to newer version, because it seems that 1.7 is not supported for 32-bit systems)

Thank you very much for help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-09-05 22:31:13 -0500

jrd gravatar image

updated 2012-09-06 01:10:33 -0500

OK, problem solved, turns out that the rosjava depends on several ROS (mainly low level communication) libraries.

so i copied folder /opt/ros/fuerte/include (from ROS barebones installation for Ubuntu) onto Mac, exported the ROS_PACKAGE_PATH and then installation succeeds:

export ROS_PACKAGE_PATH=/path/to/folder/include/
./gradlew install
edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-09-04 04:21:01 -0500

Seen: 619 times

Last updated: Sep 06 '12