You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use curl for consistency
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Update build badges
Currently, we only have CI for Dashing on Linux.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Update URLs
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Minor formatting changes
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Update build instructions for desktop
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Use different header markdown syntax
For more granularity in header levels.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Fix whitespace formatting
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Formatting
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Add ref to ticket for ROS time
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* 'merge install' for Windows
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Fix typo
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Update Android instructions with CI (#125)
* Update Android instructions
This is a work in progress, still troubleshooting build issues.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Update Android repos file
Now the repos file contains all packages in the upstream dashing repos file, without the Qt packages:
https://github.com/ros2/ros2/blob/dashing/ros2.repos
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Added job for Android
* Only build the rcljava subset of dependencies
* Fix URL
* Replace ros-tooling scripts with plain commands
* Fix typo
* Install vcstool for vcs
* Install Android NDK
* Add ros2_java workspace to CMake find root path
* Disable building tests
* Do not build osrf_testing_tools_cpp as it uses execinfo.h, which is not available on Android
* Workaround for Android
* Reenable building tests
* Skip cyclonedds for now
* Install lark parser
* Install python3-dev
* Pass PYTHON_LIBRARY and PYTHON_INCLUDE_DIR to the CMake Python module
* Skip rcl_logging_log4cxx
* Use rmw fork for Android. Skip CycloneDDS packages
* Revert to 1.6
* Configure log4j dynamically to avoid errors when building for Android
* Configure log4j dynamically to avoid errors when building for Android
* Switch to jacob/instructions temporarily
* Fix compilation error
* Trim repos file for Android
* Readd googletest repo
* Fix missing import
* Build entire workspace
* Only build up to the Android examples
* Install colcon extensions for Gradle
* Revert changes for desktop
* Move ros2_android repo to ros2-java org
* Install Gradle
* Build rcljava_examples
* Install Gradle
* Do not build rcljava_examples temporarily
* Update README.md
* Do not use fork
* Use repos files from GitHub workspace
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Add checkout action for cloning the branch to test
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Use version of ros2_java in the branch being tested
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Switch back to dashing branch
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Co-authored-by: Esteve Fernandez <esteve@apache.org>
Co-authored-by: Esteve Fernandez <esteve@apache.org>
This is a set of projects (bindings, code generator, examples and more) that enables developers to write ROS2
11
+
This is a set of projects (bindings, code generator, examples and more) that enables developers to write ROS 2
16
12
applications for the JVM and Android.
17
13
18
14
Besides this repository itself, there's also:
19
-
-https://github.com/esteve/ament_java, which adds support for Gradle to Ament
20
-
-https://github.com/esteve/ament_gradle_plugin, a Gradle plugin that makes it easier to use ROS2 in Java and Android project. The Gradle plugin can be installed from Gradle Central https://plugins.gradle.org/plugin/org.ros2.tools.gradle
21
-
-https://github.com/esteve/ros2_java_examples, examples for the Java Runtime Environment
22
-
-https://github.com/esteve/ros2_android_examples, examples for Android
15
+
-https://github.com/ros2-java/ament_java, which adds support for Gradle to Ament
16
+
-https://github.com/ros2-java/ament_gradle_plugin, a Gradle plugin that makes it easier to use ROS 2 in Java and Android project. The Gradle plugin can be installed from Gradle Central https://plugins.gradle.org/plugin/org.ros2.tools.gradle
17
+
-https://github.com/ros2-java/ros2_java_examples, examples for the Java Runtime Environment
18
+
-https://github.com/ros2-java/ros2_android_examples, examples for Android
23
19
24
-
Is this Java only?
25
-
------------------
20
+
### Is this Java only?
26
21
27
-
No, any language that targets the JVM can be used to write ROS2 applications.
22
+
No, any language that targets the JVM can be used to write ROS 2 applications.
28
23
29
-
Including Android?
30
-
------------------
24
+
### Including Android?
31
25
32
26
Yep! Make sure to use Fast-RTPS as your DDS vendor and at least [this revision](https://github.com/eProsima/Fast-RTPS/commit/5301ef203d45528a083821c3ba582164d782360b).
33
27
34
-
Features
35
-
--------
28
+
### Features
36
29
37
30
The current set of features include:
38
31
- Generation of all builtin and complex ROS types, including arrays, strings, nested types, constants, etc.
@@ -41,76 +34,80 @@ The current set of features include:
41
34
- Clients and services
42
35
- Timers
43
36
- Composition (i.e. more than one node per process)
44
-
- Time handling (system and steady, ROS time not yet supported https://github.com/ros2/ros2/issues/350)
37
+
- Time handling (system and steady, ROS time not yet supported https://github.com/ros2-java/ros2_java/issues/122)
45
38
- Support for Android
46
39
- Parameters services and clients (both asynchronous and synchronous)
47
40
48
-
Sounds great, how can I try this out?
49
-
-------------------------------------
41
+
## Sounds great, how can I try this out?
42
+
43
+
### Install dependencies
50
44
51
45
> Note: While the following instructions use a Linux shell the same can be done on other platforms like Windows with slightly adjusted commands.
52
-
>
53
-
> For Windows and Mac, first follow the steps for installing prerequisites on the binary installation page: https://github.com/ros2/ros2/wiki/Installation
54
-
>
55
-
> Stop and return here when you reach the "Downloading ROS 2" section.
56
46
57
-
Download the ament repositories in a separate workspace:
> Note: On Windows, use `python src/ament/ament_tools/scripts/ament.py build`, as `*.py` scripts must be prefixed with `python`, `--symlink-install` is not supported due to a bug in Python symlinks, and `--isolated` creates paths that are too long.
68
-
> Additionally, you may need to call `call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"` if you have not run from a VS 2017 terminal.
We need to split the build process between Ament and the rest of `ros2_java` workspace so that the additional build type for Gradle projects is picked up by Ament.
85
+
### Download and Build ROS 2 Java for Desktop
71
86
72
-
Make sure you have Gradle 3.2 (or later) installed. Ubuntu 16.04 ships with Gradle 2.10, you can install a more recent version of Gradle from the following PPA:
87
+
1. Source your ROS 2 installation, for example:
73
88
74
-
```
75
-
$ sudo add-apt-repository ppa:cwchien/gradle
76
-
$ sudo apt install -y gradle
77
-
```
78
-
For OSX, use homebrew command to install gradle:
89
+
source /opt/ros/dashing/setup.bash
79
90
80
-
```
81
-
$ brew install gradle
82
-
```
91
+
1. Download the ROS 2 Java repositories into a workspace:
83
92
84
-
For OSX users, there some compatibily issues have been reported between gradle 3.x and Java 9. Currently only the combination of Gradle 3.x + Java 8 has been tested successfully. Make sure to use install and use Java 8 for the building process:
*Note, on Windows we have to use `--merge-install`*
107
106
108
-
> On Windows, if you would like to use OpenSplice, call `call "C:\opensplice67\HDE\x86_64.win64\release.bat"` before building.
107
+
colcon build --merge-install
109
108
110
-
Now you can just run a bunch of examples, head over to https://github.com/esteve/ros2_java_examples for more information.
111
109
112
-
Android
113
-
-------
110
+
### Download and Build ROS 2 Java for Android
114
111
115
112
The Android setup is slightly more complex, you'll need the SDK and NDK installed, and an Android device where you can run the examples.
116
113
@@ -122,48 +119,43 @@ We'll also need to have the [Android SDK](https://developer.android.com/studio/#
122
119
123
120
Although the `ros2_java_android.repos` file contains all the repositories for the Android bindings to compile, we'll have to disable certain packages (`python_cmake_module`, `rosidl_generator_py`, `test_msgs`) that are included the repositories and that we either don't need or can't cross-compile properly (e.g. the Python generator)
You can find more information about the Android examples at https://github.com/esteve/ros2_android_examples
122
+
1. Download the [Android NDK](https://developer.android.com/ndk/downloads/index.html) and set the environment variable `ANDROID_NDK` to the path where it is extracted.
123
+
124
+
1. Download the [Android SDK](https://developer.android.com/studio/#downloads) and set the environment variable `ANDROID_HOME` to the path where it is extracted.
0 commit comments