Skip to content

Commit

Permalink
Fixed bug to ensure line specified by cut direction is always long en…
Browse files Browse the repository at this point in the history
…ough to cross mesh
  • Loading branch information
marip8 committed Dec 11, 2020
1 parent d2b5279 commit 7a98c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool_path_planner/src/surface_walk_raster_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ vtkSmartPointer<vtkPolyData> SurfaceWalkRasterGenerator::createStartCurve()
Eigen::Vector3d cut_dir(config_.cut_direction);
if (!cut_dir.isApprox(Eigen::Vector3d::Zero()))
{
max = cut_dir;
max = cut_dir.normalized() * max.norm();
}
else
{
Expand Down

0 comments on commit 7a98c0e

Please sign in to comment.