forked from ekumenlabs/roscpp_android
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from Intermodalics/ros-hello
Ros hello world example app
- Loading branch information
Showing
32 changed files
with
605 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
output | ||
*.pyc | ||
**/.gradle/* | ||
**/build/* | ||
**/.externalNativeBuild/* | ||
files/pluginlib_helper/pluginlib_helper.cpp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,28 @@ | ||
These scripts will (hopefully) help you build static libraries | ||
for tf2 for android and setup a sample application. | ||
These scripts will help you build static libraries | ||
for ROS kinetic for android and setup a sample application. | ||
|
||
You will need android SDK installed and the 'android' program | ||
location in the $PATH. | ||
|
||
INSTALL | ||
------- | ||
|
||
Source ROS (for python tools): | ||
|
||
source /opt/ros/kinetic/setup.bash | ||
Build docker image and run it: | ||
|
||
docker/build.sh | ||
docker/run.sh | ||
|
||
The `do_everything.sh` script will call all the other scripts | ||
sequentially, you just have to give it a prefix path: | ||
|
||
./do_everything.sh /path/to/workspace | ||
|
||
YOU WILL PROBABLY HAVE TO RUN THIS MULTIPLE TIMES DUE TO PTHREAD LINKING. | ||
|
||
You can also run each script individually, most of them have | ||
a minimalistic help string to give you an idea of their parameters. | ||
|
||
When finished, the script will give you a few lines of what it did. | ||
If everything went fine, you will be able to do the following: | ||
|
||
cd /path/to/workspace/sample_app | ||
ant debug | ||
|
||
This will build the app. If you want to install it, run the following: | ||
|
||
ant debug install | ||
|
||
This will install the app onto a virtual android device running in the | ||
emulator. | ||
BUILD SAMPLES | ||
------- | ||
|
||
To follow what the app does, you will need to read the log. The sdk has | ||
a tool called `adb` located in `$SDK/platform-tools/`, you can follow the | ||
log by running: | ||
If you also want to build the samples, use: | ||
|
||
$SDK/platform-tools/adb logcat | ||
./do_everything.sh /path/to/workspace --samples | ||
|
||
Good luck! | ||
You can find the resulting apks inside `/path/to/workspace/target/apks/name_of_the_sample_app/apk_file`. | ||
Specific instructions about how to use the samples are located inside: `files/name_of_the_sample_app/README.md` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.