当前位置:   article > 正文

android point,android_pointcloud_viewer

android point cloud view

android_pointcloud_viewerAuthor: Omri Lavi (omri AT cogniteam.com)

Licence: MIT

This android application extends rosjava features, to enable viewing sensor_msgs/PointCloud2 messages via ros.

Using out-of-the-box

For using this application as-is, without code modifications:Install the app on your phone, using android-studio.

Run the application.

Enter details for ros-master, and press connect.

Publish a PointCloud2 message that you wish to view. NOTE: it may take a few seconds (up to ~30 seconds) until the message is being fully processed. Details about the default structure of the message can be found here.

Use the different controls available to view the Pointcloud2 message. Details about the controls can be found here.

Controls

There are 3 main controls for viewing the PointCloud:A vertical slider, which can be found on the right side of the screen. Sliding this contol up will move the camera in ("step in"), and sliding it down will have the same effect to the opposite direction.

A 2-dimensional joystick, which can be found beneath the slider. Use it to move the camera vertically or horizontally.

Gestures: Rotation - will rotate the camera on its z-axis (clockwise/counter-clockwise).

1-Finger swiping - will move the camera's view horizontally or vertically.

2-Finger swiping - will rotate the point cloud on its center.

Double click - will reset the view, and move the camera to the center of the point cloud.

Default structure for PointCloud2 message

By default, each point in the message should have the following fields (in order):Float representing x.

Float representing y.

Float representing z.

Empty float (is being discarded).

Intensity, which is used to set each point's grayscale color.

Parsing of the message can be easily changed in the code.

ROS API

android/pcd_view

android_pcd is a node which run on the android, that is used for displaying pointclouds.

Subscribed Topics

cloud/source (sensor_msgs/PointCloud2) The pointcloud to view

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/394162
推荐阅读
相关标签
  

闽ICP备14008679号