• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ev3dev-lang-java/template-project-gradle: A ready to use ev3dev-lang-java projec ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

ev3dev-lang-java/template-project-gradle

开源软件地址(OpenSource Url):

https://github.com/ev3dev-lang-java/template-project-gradle

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

Template project with Gradle

Why

Test a new technology is always a bit tedious and it requires an amount of time. So, this project try to reduce the curve of learning of any new user with EV3Dev-lang-java.

Prerequisites

The Prerequisites to use this project are:

Note: Update the EV3Dev kernel https://www.ev3dev.org/docs/tutorials/upgrading-ev3dev/

sudo apt-get update
sudo apt-get install linux-image-ev3dev-ev3

Once you have all steps done, continue with the next section.

Getting Started

This repository stores a template project about EV3Dev-lang-java. Once you download in your computer the project, open your favourite Java IDE ( Eclipse or IntelliJ) to import this Gradle project. The project includes latest dependencies and an example ready to be deployed on your Robot using the core library from EV3Dev-lang-java.

The project includes some tasks to reduce the time to deploy on your robot.

Review the IP of your Brick and update the file ./config.gradle:

remotes {
    ev3dev {
        host = '192.168.1.180'
        user = 'robot'
        password = 'maker'
    }
}

EV3Dev-lang-java

The tasks associated to deploy on your Robot are:

  • testConnection (Test the connection with your Brick)
  • deploy (The project deliver a FatJar to your Brick)
  • remoteRun (Execute a Jar deployed on your Brick)
  • deployAndRun (Deploy & Execute from your Computer the program that you configured on the file: MANIFEST.MF)
  • ev3devInfo (Get technical information about your EV3 Brick)
  • removePreviousJar (Remove current jar remotely)
  • remoteBrickRun (If your program is going to use some EV3 Actuator like LCD, Buttons, use this task to execute the program)
  • remoteRun (Execute your jar remotely)
  • remoteRunClassVerbose (Execute your jar and show JVM info)
  • remoteProfilingRun (Execute your jar configured for Profiling activities)
  • deployAndBrickRun (Deploy & Execute your program with Brickrun)
  • deployAndProfilingRun (Deploy & Execute your jar configured for Profiling activities)
  • pkillJava (Kill Java processes in your Brick)

You can use the Java IDE to launch the task or execute them from the terminal

./gradlew deployAndBrickRun

Javadocs

The project has the following technical documentation

http://ev3dev-lang-java.github.io/docs/api/latest/index.html

Examples

Exist several examples ready to use here:

https://github.com/ev3dev-lang-java/examples

Issues

If you have any problem or doubt, use the main project.

https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap