Ros captures Android images and IMU data in real time

Source: Internet
Author: User

Objective

Near graduation, tidy up what you have done before. This blog is from a conference paper published by bloggers in March 2016 (the paper focuses on how to process image and IMU data in real-time, which is the data collection part of this blog post).

The purpose of this article is to connect the PC and the mobile phone to the same LAN, and then the mobile phone in real time to package the camera and IMU data into the ROS message format, the PC subscribe to these messages for further processing.

A slightly better Android phone will be equipped with an IMU (note: Many phones have only a three-axis accelerometer and no three-axis gyroscope). The blogger uses the Huawei Glory 7, equipped with the LSM330 6-axis imu.

Personal understanding of the wrong place also please enlighten, reprint please indicate the source, content if there are changes to update, please see the original bo: http://www.cnblogs.com/hitcm/

If you have any questions, feel free to contact me at [email protected]

Installation use

The compiled installation package has been put on the blogger git, welcome to download the use, install the APK:

git clone https://github.com/hitcm/Android_Camera-IMU.git

sudo apt-get install ros-indigo-imu-tools is also required for the subsequent display

1. First ensure that the PC and Android phone on the same LAN, and then open the Roscore of the ROS system, the application on Android, in the IP port to modify the IP address of the PC IP address, port does not need to be modified.

2. After the modification, click Connect, then the connection is successful and enters the camera interface.

3. Perform rostopic list on the PC, you can see the camera data and IMU data name as follows, the first three topic is.

4. Execute the command CD to download Git's local directory above, execute the above git-provided launch file, Roslaunch Android_cam-imu.launch

The following effects are used:

Welcome to shoot Bricks

1. This application is not very stable, because Bo Master Android programming skills poor, but in the Huawei Glory 7 and Xiaomi 2s test basically normal.

2. In real-time testing, the camera can reach close to 30fps,imu only 50+hz, which should be limited by IMU hardware. Welcome to Andorid System Hardware familiar friends enlighten, how to solve the problem of sensor synchronization?

Ros capture Android image and IMU data in real time

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.