Skip to content

Commit

Permalink
Merge pull request #159 from Intermodalics/fix/empty_transform_published
Browse files Browse the repository at this point in the history
Do not publish if transform is empty
  • Loading branch information
Ruben Smits committed Feb 17, 2017
2 parents 104cb71 + 867c730 commit db723ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TangoRosStreamer/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="eu.intermodalics.tango_ros_streamer"
android:versionCode="11"
android:versionCode="13"
android:versionName="1.0">

<uses-permission android:name="android.permission.CAMERA" />
Expand Down
5 changes: 4 additions & 1 deletion tango_ros_common/tango_ros_native/src/tango_ros_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,10 @@ void TangoRosNode::PublishDevicePose() {
pose_available_.wait(lock);
if (publisher_config_.publish_device_pose) {
tf_broadcaster_.sendTransform(start_of_service_T_device_);
tf_broadcaster_.sendTransform(area_description_T_start_of_service_);
if (area_description_T_start_of_service_.child_frame_id != "") {
// This transform can be empty. Don't publish it in this case.
tf_broadcaster_.sendTransform(area_description_T_start_of_service_);
}
}
}
}
Expand Down

0 comments on commit db723ee

Please sign in to comment.