Skip to content

Commit ef312e6

Browse files
[Roadmap] throw if roadmap is empty in Roadmap::nearestNode.
1 parent c6eda3b commit ef312e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

idl/hpp/core_idl/path_planners.idl

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ module hpp
5555
/// cannot be checked here because the robot is not accessible.
5656
floatSeq nearestNode (in floatSeq config, out value_type distance,
5757
in boolean reverse) raises (Error);
58+
//* if (getT()->nodes().size() == 0) throw std::logic_error(
59+
//* "hpp::core::Roadmap::nearestNode: roadmap is empty");
5860
//* return corbaServer::vectorToFloatSeq(getT()->nearestNode(
5961
//* corbaServer::floatSeqToVector(config), distance, reverse)->configuration());
6062

0 commit comments

Comments
 (0)