![]() ![]() To get started, you can create a new empty app in Android Studio. $ sudo apt-get install ros-hydro-ros ros-hydro-common-msgs $ sudo apt-get install ros-hydro-image-view ros-hydro-image-transport-plugins To see images from your Android device on your computer you will need some additional ROS packages installed on your machine. If yo don't have a lot of Android background, here are some concepts you might want to be familiar with: If you don't have a lot of ROS background, here are some concepts you might want to be familiar with: This tutorial tries to be accessible for people with varying degrees of ROS and/or Android background. We'll write a sample app that connects to a "robot", your computer, and lets your device send images from its camera(s) to the robot. This will show you how to use existing libraries to write your own Android apps. Just make sure you don't get any build errors. Really though we just want to see if it builds, so we don't care if it actually loads on to a device or the emulator. If you want to load the app on to a device, make sure one is connected to your computer via usb. For example, you can build android_teleop by right-clicking and selecting "Run". The bold folders are apps that you can build. You'll see the project open up in Android Studio as shown below: Hit 'Next' and on the following screen choose the radio button for "Use gradle wrapper (recommended)". You can simply import the whole android_apps folder as a project.Ĭhoose to "Import project from external model" and select Gradle. Otherwise File->Import Project and then browse to where you cloned the ROS Android Apps repository. If this is the first time you are opening up Android Studio you may get a dialog window where you can choose to Import Project. If you followed the installation instructions linked above, you can just type in a terminal: The simplest way is to first clone the app repository somewhere, perhaps a working directory: The ROS Android Apps can be found on GitHub here. The android applications use libraries from the android_core package.įollow the instructions here to download and set up Android Studio if you do not have it already. The android application platform client lives in the android_remocons package. This needs to be moved to a relevant location and updated - alot of the information here is useful though. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |