Skip to content

Commit 287ce30

Browse files
committed
Fix RosTfListener when there is no transform
1 parent ac65838 commit 287ce30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ros_tf_listener.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ namespace dynamicgraph {
4343
} catch (const tf::TransformException& ex) {
4444
res.setIdentity();
4545
ROS_ERROR("Enable to get transform at time %i: %s",time,ex.what());
46+
return res;
4647
}
4748
for (sot::MatrixHomogeneous::Index r = 0; r < 3; ++r) {
4849
for (sot::MatrixHomogeneous::Index c = 0; c < 3; ++c)

0 commit comments

Comments
 (0)