Skip to content

RoboticaUtnFrba/android_sensors_driver

 
 

Repository files navigation

ROS Driver for Android Sensors

This is a nice android application that allows for publishing of data from a phone to a publish ROS master. This can be used to record a ROS bag of data or to preform SLAM on a higher powered computer. Note that this only works on phones that use the Camera1 API (so no newer camera2 api phones). If you are interested in recording data for a Camera2 API phone check out our other repository android-dataset-recorder. Also note that on some phones the number of cameras that you can use is limited (and thus if you select more the app will fail). This is caused by a limit to the bandwidth over the camera buses on the physical phone hardware.

Additional Feature of this Fork

  • Publish high resolution jpeg pictures on ROS stream instead of a lower resolution video stream (default config)
  • Show information of number of published pictures

How to compile and install?

  • Downlaod Android Studio and install https://developer.android.com/studio/index.html
  • run git clone this_repo_url
  • open android_sensor_porject as existing project in Android Studio
  • Press run button
  • Build will fail but suggest to install missing frameworks. Click on the link, install missing, and press run again.
  • You can choose to run on a simulator or on your phone
    • Phone
      • Your phone must have developer mode enabled.
      • Enter IP of rosmaster
    • Emulator
      • IP of localhost of emulator computer is 10.0.0.2
      • Enter 10.0.0.2 in your app in emulator, if ros is running at your local computer as well

Screenshots

Screenshot 1 Screenshot 1

Troubleshooting

Message on uploading to phone: Error:Execution failed for task ':android_sensors_driver_module:zipalignDebug'.

A problem occurred starting process 'command '/opt/android/build-tools/21.1.2/zipalign'' build-tools/21.1.2/zipalign: No such file or directory

Solution: sudo apt-get install libc6:i386 libstdc++6:i386 zlib1g:i386

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.8%
  • Other 0.2%