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

kurmis's profile - activity

2012-12-20 01:47:05 -0500 received badge  Famous Question (source)
2012-12-20 01:47:05 -0500 received badge  Popular Question (source)
2012-12-20 01:47:05 -0500 received badge  Notable Question (source)
2012-05-20 07:54:18 -0500 received badge  Teacher (source)
2012-03-30 04:37:11 -0500 answered a question rosjava errors on oneiric
2012-03-28 12:16:02 -0500 answered a question rosjava - Subscriber java.net.ConnectException: localhost/127.0.0.1:37172 - Connection refused

Are you behind a router (or any NAT device)? if that is the case you will need to configure it to pass needed ports directly to your computer.

2012-03-28 08:12:47 -0500 received badge  Student (source)
2012-03-27 04:55:54 -0500 answered a question how to run rosjava_tutorial_pubsub?

if I try to run it with this command:

java -jar rosjava_tutorial_pubsub-0.0.0-SNAPSHOT.jar org.ros.tutorials.pubsub.Listener

I get an error:

Failed to load Main-Class manifest attribute from
rosjava_tutorial_pubsub-0.0.0-SNAPSHOT.jar

so I use a dirty workaround adapted from this guide

http://mrhaki.blogspot.com/2010/09/gradle-goodness-run-java-application.html

edit build.gradle file by adding this:

task(runListener, dependsOn: 'classes', type: JavaExec) {
  main = 'org.ros.tutorials.pubsub.Pubsub'
  classpath = sourceSets.main.runtimeClasspath
  args 'Listener'
}
task(runTalker, dependsOn: 'classes', type: JavaExec) {
  main = 'org.ros.tutorials.pubsub.Pubsub'
  classpath = sourceSets.main.runtimeClasspath
  args 'Talker'
}

create a Pubsub.java and put it where Talker.java and Listener.java are.

Pubsub.java:

package org.ros.tutorials.pubsub;

import org.ros.node.*;

public class Pubsub {
  public static void main(String[] args) {
    if(args ==null)
      return;
    NodeMain nodeMain = null;
    NodeConfiguration nodeConf = null;
    if(args[0].equals("Listener")) {
      nodeMain = new Listener();
      nodeConf = NodeConfiguration.newPrivate();
    }
    else if(args[0].equals("Talker")) {
      nodeMain = new Talker();
      nodeConf = NodeConfiguration.newPrivate();
    }
    NodeMainExecutor runner = DefaultNodeMainExecutor.newDefault();
    runner.execute(nodeMain, nodeConf);
  }
}

then you can run them with commands: gradle runListener and gradle runTalker

2012-03-27 04:31:18 -0500 answered a question NodeRunner.java missing

I think NodeRunner was renamed to NodeMainExecutor in newer releases. Correct me if I’m wrong.

2012-03-27 03:52:24 -0500 received badge  Scholar (source)
2012-03-25 11:45:57 -0500 commented question rosjava gradle compilation loop

managed to compile it with: ./gradlew rosjava:install -x tests

2012-03-20 20:41:07 -0500 commented question Error building rosjava from source using gradle

will update on mar 30-31, can't get to that pc now.

2012-03-20 11:19:11 -0500 asked a question rosjava gradle compilation loop

trying to compile rosjava using gradle following:

http://docs.rosjava.googlecode.com/hg/rosjava_core/html/building.html

i managed to get to fourth step, when i run: ./gradlew rosjava:install everything seems to compile good, but once i hit

Building > :rosjava:test > 19 tests completed

it seems to freeze, i ran it with ./gradlew rosjava:isntall --debug and it seems to loop this forever:

23:15:47.667 [DEBUG] [org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching request to worker: [Request consumer: 702b4444-12e7-4914-be76-28b05bff8732, payload: [MethodInvocation method: output()]]
23:15:47.667 [DEBUG] [org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching request to worker: [Request consumer: 702b4444-12e7-4914-be76-28b05bff8732, payload: [MethodInvocation method: output()]]
> Building > :rosjava:test > 19 tests completed

using:

------------------------------------------------------------
Gradle 1.0-milestone-9
------------------------------------------------------------

Gradle build time: Tuesday, March 13, 2012 4:10:09 PM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Ivy: 2.2.0
JVM: 1.6.0_23 (Sun Microsystems Inc. 20.0-b11)
OS: Linux 3.0.0-16-generic-pae i386

Apache Maven 3.0.4 (r1232337; 2012-01-17 10:44:56+0200)
Maven home: /home/vaida/programs/apache-maven-3.0.4
Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.0.0-16-generic-pae", arch: "i386", family: "unix"

Ubuntu 11.10

Anyone know what might be causing that loop or how to turn off that test?

2012-03-15 23:54:53 -0500 received badge  Editor (source)
2012-03-15 10:22:12 -0500 received badge  Supporter (source)
2012-03-15 08:24:37 -0500 asked a question Error building rosjava from source using gradle

First i downloaded rosjava using: hg clone https://rosjava.googlecode.com/hg/ rosjava_core

then following the tutorial: http://docs.rosjava.googlecode.com/hg/rosjava_core/html/building.html

i managed to compile rosjava bootstrap using: ./gradlew rosjava_bootstrap:install

and on fourth step i get an error:

mindaugas@Workhorse:~/ros_workspace/rosjava_core$ rosrun rosjava_bootstrap install_generated_modules.py rosjava
Traceback (most recent call last):
  File "/home/mindaugas/ros_workspace/rosjava_core/rosjava_bootstrap/scripts/install_generated_modules.py", line 126, in <module>
    rospack = roslib.packages.ROSPackages()
AttributeError: 'module' object has no attribute 'ROSPackages'
mindaugas@Workhorse:~/ros_workspace/rosjava_core$

I am using fuerte compiled from source. Any ideas?

Thanks in advance.