Skip to content

Commit

Permalink
Merge branch 'master' into style/control
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 authored May 2, 2017
2 parents 64516f4 + 36d3a30 commit b8e3916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/planner/SnapPlanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ trajectory::InterpolatedPtr planSnap(
if (!constraint->isSatisfied(testState))
{
planningResult.message = "Collision detected";
return returnTraj;
return nullptr;
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/planner/test_SnapPlanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ TEST_F(SnapPlannerTest, FailIfConstraintNotSatisfied)
{
auto traj = planSnap(stateSpace, *startState, *goalState, interpolator,
failingConstraint, planningResult);
EXPECT_EQ(0, traj->getNumWaypoints()); // TODO boost::optional
EXPECT_EQ(nullptr, traj);
}

0 comments on commit b8e3916

Please sign in to comment.