Only released in EOL distros:
Package Summary
This package wraps Tango Ros Streamer application
- Maintainer status: developed
- Maintainer: Ruben Smits <ruben AT intermodalics DOT eu>, Perrine Aguiar <perrine AT intermodalics DOT eu>
- Author:
- License: Apache
- Source: git https://github.com/Intermodalics/tango_ros.git (branch: master)
Package Summary
This package wraps Tango Ros Streamer application
- Maintainer status: developed
- Maintainer: Ruben Smits <ruben AT intermodalics DOT eu>, Perrine Aguiar <perrine AT intermodalics DOT eu>
- Author:
- License: Apache
- Source: git https://github.com/Intermodalics/tango_ros.git (branch: master)
App summary
Tango ROS Streamer is an android application and ROS node for Tango-enabled devices. Its main purpose is to provide Tango sensor data to the ROS ecosystem in order to easily use the Tango functionalities on robots.
Contents
Installation
From the Play Store
From source
The app has been developed and tested with ROS indigo on Ubuntu 14.04, and kinetic on Ubuntu 16.04.
Tutorials
- Visualise Tango data in Rviz
Step by step tutorial to visualise Tango data published by the TangoRosStreamer application in Rviz.
- Use Tango localization
Tutorial showing how to use the different localization modes provided by TangoRosStreamer.
- Use the tango ROS node in your own app
Tutorial to integrate the tango ROS node of TangoRosStreamer in your own app.
Create a new tutorial:
Known Usages
ROS API
tango
This node is the core of the application, it is responsible for streaming Tango data to ROS.Published Topics
android/imu (sensor_msgs/Imu)- IMU message from the Android sensors.
- Camera info of the Tango device color camera.
- Image of the Tango device color camera.
- Rectified image of the Tango device color camera.
- Camera info of the Tango device fisheye camera. The fisheye camera data is not available on devices with API level > 23. This topic is therefore not advertised for these devices.
- Image of the Tango device fisheye camera. The fisheye camera data is not available on devices with API level > 23. This topic is therefore not advertised for these devices.
- Rectified image of the Tango device fisheye camera. The fisheye camera data is not available on devices with API level > 23. This topic is therefore not advertised for these devices.
- Laser scan message created from the Tango point cloud, expressed in laser frame.
- Point cloud of the Tango device depth sensor, expressed in camera_depth frame.
- Marker array containing meshes built by the Tango 3D reconstruction API.
- Occupancy grid built from the Floorplan of the Tango 3D reconstruction API.
- Static occupancy grid after loading it with the tango/load_occupancy_grid service.
- Current status of the Tango service. 0: UNKNOWN, 1: SERVICE_NOT_CONNECTED, 2: NO_FIRST_VALID_POSE, 3: SERVICE_CONNECTED.
- Current transform between area_description and start_of_service frames.
- Current transform between start_of_service and device frames.
Services
tango/connect (tango_ros_messages/TangoConnect)- Doc here. Service to disconnect/connect to the Tango service. 0: DISCONNECT, 1: CONNECT, 2: RECONNECT (disconnect and connect cycle).
- Doc here. Get the name of a map given its uuid.
- Doc here. Get uuid and name lists of all maps available.
- Doc here. Load an occupancy grid from disk (path set via the tango/occupancy_grid_directory parameter) and publish it on the /tango/static_occupancy_grid topic. If the yaml file of the occupancy grid contains a uuid field and it is not empty, then the origin of the occupancy grid is expressed wrt the AREA_DESCRIPTION frame. Otherwise, its origin is expressed wrt the START_OF_SERVICE frame. Also, in the case where a localization map is loaded (/tango/localization_map_uuid parameter set before connecting to Tango) and its uuid corresponds to the uuid field of the occupancy grid yaml file, then the occupancy grid is aligned with the localization map.
- Doc here. Save the current localization map and/or the occupancy grid with the given name. 1: SAVE_LOCALIZATION_MAP, 2: SAVE_OCCUPANCY_GRID. The localization map saved is internal to Tango and can not be accessed directly. To be able to save it the /tango/create_new_map parameter needs to be true. The occupancy grid is saved to disk (path set via the tango/occupancy_grid_directory parameter) as a pair of files: a pgm file encoding the occupancy data and a yaml file describing the metadata. This is compatible with the existing ROS node map_server. If the occupancy grid is saved together with the localization map or while a localization map is already loaded (/tango/localization_map_uuid parameter was set before connecting to Tango), the origin of the occupancy grid is saved wrt the AREA_DESCRIPTION frame and the uuid of the localization map is saved in the occupancy grid yaml file. This way, the occupancy grid will be aligned with the localization map if loaded later. Otherwise, it is saved wrt the START_OF_SERVICE frame and the uuid field is left empty in the yaml file. In this case the occupancy grid will not be aligned with the localization map when loaded later.
- Dynamic reconfigure service to change runtime parameters.
Parameters
tango/area_description_frame_id (string, default: area_description)- Frame id used for the Tango frame AREA_DESCRIPTION.
- True to create a new map. If true, tango/localization_mode is not used.
- True to enable extraction of mesh using the Tango 3D reconstruction API. To allow Tango 3D reconstruction, enable_color_camera and enable_depth also need to be true.
- True to enable extraction of occupancy grid using the Tango 3D reconstruction API. To allow Tango 3D reconstruction, enable_color_camera and enable_depth also need to be true.
- True to enable color camera. If false, Tango will not connect to the color camera of the device, which can save battery, but topics that need color image will not be advertised (color camera, mesh, occupancy_grid). Also, note that this parameter has effect only for devices with Android API level > 23. For devices with lower API levels, the color camera is always enable.
- True to enable depth camera. If false, Tango will not connect to the depth camera of the device, which can save battery, but topics that need depth data will not be advertised (pointcloud, laser, mesh, occupancy_grid).
- Maximum height of the tango laser scan in meter
- Minimum height of the tango laser scan in meter
- Uuid of the map to use for localization. Used only if tango/localization_mode is set to 3.
- Localization method to use. 1: ODOMETRY (only VIO, no map required), 2: ONLINE_SLAM (VIO + drift correction, no map required), 3: LOCALIZATION (localization in map). To know more about the localization modes, read Use Tango localization.
- Path to the directory where occupancy grids are saved/loaded.
- True to publish transforms on /tf
- Used by the Tango 3D reconstruction API. According to its documentation: "Upper bound on geometric error in meters during polygon simplification. Set to zero to disable simplification.".
- Used by the Tango 3D reconstruction API. According to its documentation: "The maximum voxel weight for the integration filter. Defaults to 16383. Roughly corresponds to the number of observations. A higher value gives better geometric quality and stability; a lower value gives more responsiveness to dynamic objects.".
- Used by the Tango 3D reconstruction API. According to its documentation: "Minimum number of vertices that every connected component in the mesh should consist of. Defaults to 1. Smaller components (typically noise) will be deleted.".
- Threshold to decide if a pixel value should correspond to a free or occupied cell when converting the image of Tango 3D reconstruction to an occupancy grid. Should be between 0 and 255: pixel value <= threshold --> cell is free, pixel value > threshold --> cell is occupied.
- Resolution used by the Tango 3D reconstruction API, in meter. It also corresponds to the resolution of the occupancy grid.
- Used by the Tango 3D reconstruction API. According to its documentation: "Update method to be used when caling Tango3DR_update. See Tango3DR_UpdateMethod.".
- Used by the Tango 3D reconstruction API. According to its documentation: "When true, will clear away free space along the depth observations. Default is false. If enabled, 3D reconstruction will create higher quality meshes at a cost to performance.".
- Frame id used for the Tango frame START_OF_SERVICE.
- True to use /tf_static latched static transform broadcaster. If set to false static transforms are published on the /tf topic.
- API level of the Tango device running the node. It should be set only if the node is running on an Android device. In this case it should be set by the Android application running the node, before connecting to the Tango service.
Provided tf Transforms
area_description → start_of_service- Transform between area_description and start_of_service frames. This transform is available only if tango/localization_mode is set to 2 or 3. Tango is updating this transform quite slowly (~10 Hz), which can cause some applications that need high rate for odometry (e.g. navigation) to not work properly. As a workaround, this transform is published as a static transform even though it changes over time.
- Transform between start of service frame (first device pose after starting the Tango service) and current device frame.
- Depth camera pose expressed in the device frame (static transform)
- Laser pose expressed in the depth camera frame (static transform)
- Fisheye camera pose expressed in the device frame (static transform)
- Color camera pose expressed in the device frame (static transform)
- IMU pose expressed in the device frame (static transform)
Note that all image topics are published via image_transport. Therefore, for each image topic, a compressed version of the image is available together with its compression parameters.
Also note that the service tango/connect seems to not work properly on Tango Tablet Development Kit.
Report a bug
Use GitHub to report bugs or submit feature requests. [View active issues]