diff --git a/src/traversal/traversal_node_setup.h b/src/traversal/traversal_node_setup.h
index 47b00a9a8995f922e37a23c9637648b061f435f2..6c50a0e72616b103218a83831e267c90f9afb6c2 100644
--- a/src/traversal/traversal_node_setup.h
+++ b/src/traversal/traversal_node_setup.h
@@ -77,7 +77,7 @@ inline bool initialize(OcTreeCollisionTraversalNode& node,
 }
 
 /// @brief Initialize traversal node for distance between two octrees, given current object transform
-bool initialize(OcTreeDistanceTraversalNode& node,
+inline bool initialize(OcTreeDistanceTraversalNode& node,
                        const OcTree& model1, const Transform3f& tf1,
                        const OcTree& model2, const Transform3f& tf2,
                        const OcTreeSolver* otsolver,