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

Revision history [back]

click to hide/show revision 1
initial version

Unfortunately, this doesn't seem to wokr for me.

I've installed leJOS following the tutorial and was able to run the HelloWorld program on the brick.

Building nxt_lejos as described here fails at compilation.

user@ubuntu:~/ros_workspace/nxt_lejos$ gradle installApp
> Building > :nxt_lejos_lcp_proxy:compileJava > Resolving dependencies ':nxt_lej:nxt_lejos_lcp_proxy:compileJava
LCPProxy.java:13: package lejos.nxt does not exist
import lejos.nxt.Sound;
                ^
LCPProxy.java:39: package nxt_lejos_msgs does not exist
import nxt_lejos_msgs.DNSCommand;
                   ^
LCPProxy.java:40: package nxt_lejos_msgs does not exist
import nxt_lejos_msgs.JointPosition;

...

LCPProxy.java:55: package com.esotericsoftware.yamlbeans does not exist
import com.esotericsoftware.yamlbeans.YamlReader;
                                     ^

DifferentialNavigationSystem.java:3: package lejos.nxt does not exist
import lejos.nxt.Motor;
                ^
DifferentialNavigationSystem.java:4: package lejos.robotics does not exist
import lejos.robotics.RegulatedMotor;
                     ^
DifferentialNavigationSystem.java:5: package lejos.robotics.localization does not exist
import lejos.robotics.localization.OdometryPoseProvider;

...

SoundSensor.java:3: package lejos.nxt does not exist
import lejos.nxt.SensorPort;

etc.

I suppose this is partially because you are missing the message representations in Java. Therefore one needs to reinstall rosjava_messages after checking out nxt_lejos into the ros workspace and the gradle nxt_lejos build should be able to find the nxt_lejos_msgs generated by rosjava.

Plus: There are hard coded pathes in */build.gradle files, e.g. (in nxt_lejos_proxy/build.gradle):

dependencies {
  compile 'ros.rosjava_core:rosjava:0.0.0-SNAPSHOT'
  compile fileTree (dir: '/home/lejosdev/workspace/snapshot/lib/pc', includes: ['*.jar'])
  compile fileTree (dir: '/home/lejosdev/workspace/snapshot/lib/pc/3rdparty', includes: ['*.jar']) 
}

Which doesn't seem proper either.

Did I misconfigure something?

Best regards, Andreas