Questions tagged [lejos-nxj]

leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2006 it was ported to the LEGO NXT brick.

leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2006 it was ported to the LEGO NXT brick.

leJOS NXJ includes all the classes in the NXJ API as well as the tools used to upload code to the NXT brick.

leJOS NXJ offers the following:

  • Object-oriented language (Java)
  • Preemptive threads (tasks)
  • Arrays, including multi-dimensional
  • Recursion
  • Synchronization
  • Exceptions
  • Most of the java.lang, java.util and java.io classes
  • A well-documented Robotics API
73 questions
0
votes
1 answer

Can't run leJOS NXJ sample project

I try to install leJOS NXJ on my MAC OS X and run it's sample, but after I do what it wants and export NXJ_Home Path file and etc. and install netbeans plugin and create it sample project (Creating your own project using the Netbeans Plugin). I also…
Am1rr3zA
  • 7,115
  • 18
  • 83
  • 125
0
votes
1 answer

Lego EV3 not Executing programs

I have been working on this project since September and I have a presentation next week! Everything was working fine until today! No matter what I try to run on the EV3 it just beeps and gives an error: Uncaught…
0
votes
1 answer

How to add an external lejos library into Processing project

I am trying to create a small program that will track and navigate my robot (NXT). System (PC) is using camera and reacTIVision in order to recognize fiducials (tags) that are placed on the top of the robots. I created the NXT code which is running…
0
votes
1 answer

Practice and theory contradicts about Lejos Coordinate system

I know the Coordinate system of leJOS is a cartesian coordinate system.The positive X-axis is pointing directly in front of the car. The positive Y-axis points to the left of the X-axis. But I code a progarm and move the car, and then I have an…
0
votes
1 answer

Such a simple lejos program about EV3UltrasonicSensor also can appear mistake?

import lejos.hardware.lcd.LCD; import lejos.hardware.port.SensorPort; import lejos.hardware.sensor.EV3UltrasonicSensor; import lejos.robotics.SampleProvider; import lejos.utility.Delay; public class NewUl { private EV3UltrasonicSensor…
0
votes
1 answer

Do ground mobile robots need to know its location information if they're programmed to avoid obstacles using sonar sensors?

This is a question that comes into mind every now and then. I personally believe the robot is not required to know its location information because: 1) if they are programmed to wander around, they can easily avoid obstacles without the need to know…
TheDerp
  • 131
  • 1
  • 10
0
votes
1 answer

Downloading Lejos Firmware w/ eclipse plug-in (Linux Mint 17.3)

So I've just switched to d to Linux Mint rosa from Windows 10. I'm trying to figure out how download the firmware through eclipse. Whenever I click the plug-in and then the firmware I get; "starting nxjflashg…
user3412695
0
votes
0 answers

NXTComm driver error

We're trying to set up a NXT brick to use LEJOS so that we can program it using Java for a school project, but when we try to install the firmware we get a "Cannot load NXTComm driver" error. What else do need to do to get this to download…
user5920748
0
votes
1 answer

EV3 cannot follow a straight line LeJOS Java

I try to let the robot follow a straight line for about 2 metres, using the method: movePilot.travel(2000) but when doing so, the robot seems to be biased and is slightly going to the right side. Is there any possibility to adjust this?
user5696030
0
votes
1 answer

Need Help Again Reading Data From Inputstream

Yesterday i posted a question about a problem i had concerning inputstream reading and i was helped. I find myself in similar situation but this time i know that I am doing the right thing but yet it is not working for me. I am reading from an…
Edy Moore
  • 2,129
  • 3
  • 14
  • 10
0
votes
1 answer

Need Help And Ideas In Solving A Collection Problem

I have already posted a question today. This question is about the same project but unrelated. I am developing an application for the Lego NXT Mindstorm robot. I have two robots and a GUI running on a PC. In leJOS NXJ you can only use one input…
kap
  • 11
  • 1
0
votes
2 answers

IllegalThreadStateException on Thread.interrupt

I have a java program, which takes very long time to compile. For testing purposes, I want to kill the program and restart it if compilation takes long duration. Here is the simplified version of my code: public class Main { public static…
nloomans
  • 220
  • 2
  • 11
0
votes
1 answer

LeJOS sample programs won't build

I have downloaded leJOS and the eclipse addon. I set NXJ_HOME to C:\Program Files\leJOS EV3, and imported the sample programs. They don't build. They get errors on all the import lejos.* stuff. Also, I'm told that when I make my own leJOS program,…
DanielLC
  • 5,801
  • 5
  • 18
  • 16
0
votes
1 answer

usage of ev3 ultrasonic sensor in lejos behavior based programming

I'm using ev3 ultrasonic sensor. And I'm writing a behavior based lejos code. I want to do some tasks when the ultrasonic sensor detects an object which is not further than 30 cm's. And this is my code: public UltrasonicSensor(Port port) { …
yusuf
  • 3,591
  • 8
  • 45
  • 86
0
votes
1 answer

Install lejos eclipse windows 8.1 new project has errors

I was trying to install lejos on my laptop which has windows 8.1. I downloaded eclipse 32bit. I installed lejos plug in in eclipse. I installed leJOS_EV3_0.9.0-beta_win32_setup. Now i went to eclipse and created lejos nxt project. The problem that…
Andrey Dobrikov
  • 457
  • 4
  • 20