Skip to content

Commit 51fa7b3

Browse files
committed
Exception raised when nodes are not TF-connected
Signed-off-by: Francisco Martin Rico <fmrico@gmail.com>
1 parent 4d72e72 commit 51fa7b3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

bica_graph/src/bica_graph/graph_client.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,10 @@ GraphClient::get_tf(const std::string& node_src, const std::string& node_target)
429429
if (tfBuffer.canTransform(node_src, node_target, ros::Time(0), ros::Duration(0.1), &error))
430430
tf = tfBuffer.lookupTransform(node_src, node_target, ros::Time(0));
431431
else
432+
{
433+
throw exceptions::TransformNotPossible("Nodes not connected by TFs");
432434
ROS_ERROR("Can't transform %s", error.c_str());
435+
}
433436

434437
tf2::convert(tf, ret);
435438
return ret;

0 commit comments

Comments
 (0)