Can leJOS run on ev3dev?

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

User avatar
esmetaman
Advanced Member
Posts: 358
Joined: Wed Sep 13, 2006 12:16 am
Location: UK, Milton Keynes
Contact:

Re: Can leJOS run on ev3dev?

Postby esmetaman » Sun Jun 18, 2017 12:35 pm

Ev3dev-lang-java v0.6.1 is out.
http://ev3dev-lang-java.github.io/#/

The new version includes:

- Adding support for Profiling Tools
- Enabling Stop modes for BrickPi+ & PiStorms
- Add Button, LED & LCD Support for EV3
- [POC] ROS2Java test on Ubuntu
- Development of Battery Monitor
- Adding lejos-navigation

Many videos about the usage of the new library lejos-navigation running on a EV3 Brick with EV3Dev with no changes from Original LeJOS Repository.
https://www.youtube.com/playlist?list=P ... H5p157LZX3

After summer, new release with ROS Support. I will try to be compatible with LeJOS & EV3Dev-java. I have to review the interfaces available on lejos.robotics to reach the goal and run the development on both environments. :D

Sub projects:
https://github.com/ev3dev-lang-java/ev3dev-lang-java
https://github.com/ev3dev-lang-java/lejos-commons
https://github.com/ev3dev-lang-java/lejos-navigation
https://github.com/ev3dev-lang-java/RPLidar4J
https://github.com/ev3dev-lang-java/batteryMonitor
https://github.com/ev3dev-lang-java/installer

Cheers

Juan Antonio
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://ev3dev-lang-java.github.io/#/
https://github.com/jabrena/livingrobots

User avatar
esmetaman
Advanced Member
Posts: 358
Joined: Wed Sep 13, 2006 12:16 am
Location: UK, Milton Keynes
Contact:

Re: Can leJOS run on ev3dev?

Postby esmetaman » Sat Aug 12, 2017 7:19 pm

New features included on release 0.7.0 is coming:

Support for Arduino and 9 axes motion shield (BNO055) using an USB Integration:
https://github.com/ev3dev-lang-java/usb ... ee/develop

Video:
https://www.youtube.com/watch?v=OY2B7B0Qi2Y

Example:

Code: Select all

package examples;

import ev3dev.actuators.Sound;
import ev3dev.arduino.sensors.bn055.BNO055;
import ev3dev.arduino.sensors.bn055.BNO055Listener;
import ev3dev.arduino.sensors.bn055.model.BNO055Response;
import ev3dev.arduino.sensors.bn055.model.Euler;
import ev3dev.arduino.sensors.bn055.model.Euler;
import ev3dev.sensors.Battery;
import ev3dev.sensors.Button;
import lombok.extern.slf4j.Slf4j;

public @Slf4j class BNO055TurnTest {

   public static void main(String[] args) throws Exception {

      final String port = "/dev/ttyACM0";
      final BNO055 bno055 = new BNO055(port);
      bno055.init();

      log.debug("{}", Battery.getInstance().getVoltage());

      bno055.addListener(new BNO055Listener() {

         @Override
         public void dataReceived(final BNO055Response response) {

            if(response.getEuler() != null){

               final Euler euler = response.getEuler();

               log.debug("Heading: {}", euler.getHeading());

               if( (euler.getHeading() > 90.0f) &&
                  (euler.getHeading() <= 100.00f)) {

                  //Sound.getInstance().beep();
                  log.info("REACHED");
               }
            }
         }

      });

      Button.waitForAnyPress();
      log.debug("{}", Battery.getInstance().getVoltage());
      bno055.close();
      log.info("Closing connection with Arduino");

   }
}

Support for RPLIDAR A2 using an USB connection
https://github.com/ev3dev-lang-java/RPL ... ee/develop

Cheers
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://ev3dev-lang-java.github.io/#/
https://github.com/jabrena/livingrobots

User avatar
esmetaman
Advanced Member
Posts: 358
Joined: Wed Sep 13, 2006 12:16 am
Location: UK, Milton Keynes
Contact:

Re: Can leJOS run on ev3dev?

Postby esmetaman » Thu Sep 07, 2017 7:29 pm

ev3dev-lang-java 0.7.0 is out.

## 0.7.0 2017-09-06

- Upgrade lejos-commons to 0.6.0
- Docker Support
- Upgrade Wrapper
- Upgrade Fat Jar generation
- Adding Port support
- Support for BrickPi3
- Add Support Absolute IMU
- Add Support for NXTCam V5
- Initial Test support

Maven artifact:
https://jitpack.io/#ev3dev-lang-java/ev ... java/0.7.0

Juan Antonio
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://ev3dev-lang-java.github.io/#/
https://github.com/jabrena/livingrobots


Return to “EV3 Software”

Who is online

Users browsing this forum: No registered users and 1 guest