Coder Social home page Coder Social logo

ros-android's Introduction

Native Installation of ROS on Android

This repo contains the necessary components to let rosmaster run on an Android device.

you need to have a rooted tablet for this to work.

Installation

Before hand

you need to have SL4A and PY4A from installed on your tablet, you can find instructions here : https://github.com/kuri65536/sl4a https://github.com/kuri65536/python-for-android

rosmaster installation

Once installed you have to push some folders to the tablet. I used adb but you are free to do it however you want.

Python modules

everything in Python_modules has to go in /sdcard/com.googlecode.pythonforandroid/extras/python/

this will add the necessary python library for rosmaster to work.

Ros packages

create a .ros folder in the sdcard of the tablet and copy the ros_packages there.

Makes sure ROS knows what's installed on the tablet.

There is one modification in these files : in the roscore.xml I removed rosout as it needs native compilation

binaries to run python and rosmaster

To run rosmaster with SL4A we need to be able to run the scripts via the python code. For this you need to copy in a folder in /data/local/ros (only way to execute code from the tablet) the scripts :

python -> sets env variables and run python interpreter roslaunch, rosmaster and rosversion -> executable used during rosmaster launch

python script for SL4A

finally you need to push and_rosmaster.sh and roscore.py to /storage/emulated/0/sl4a/scripts so that they are accessible from the SL4A interface.

run rosmaster

To run rosmaster from SL4A you just have to run and_rosmaster.sh. This can be done by the application interface or the service provided by SL4A.

ros-android's People

Watchers

James Cloos avatar Nicolas Casademont avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.