Skip to content

Commit 2297b9e

Browse files
committed
Fix tolerance size
1 parent f9ba623 commit 2297b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tesseract_motion_planners/trajopt/src/trajopt_utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ std::shared_ptr<trajopt::TermInfo> createCartesianWaypointTermInfo(int index,
6262

6363
if (lower_tolerance.size() == 1)
6464
{
65-
pose_info->lower_tolerance = Eigen::Vector3d::Constant(lower_tolerance(0));
65+
pose_info->lower_tolerance = Eigen::VectorXd::Constant(6, lower_tolerance(0));
6666
}
6767
else if (lower_tolerance.size() == 6)
6868
{
@@ -71,7 +71,7 @@ std::shared_ptr<trajopt::TermInfo> createCartesianWaypointTermInfo(int index,
7171

7272
if (upper_tolerance.size() == 1)
7373
{
74-
pose_info->upper_tolerance = Eigen::Vector3d::Constant(upper_tolerance(0));
74+
pose_info->upper_tolerance = Eigen::VectorXd::Constant(6, upper_tolerance(0));
7575
}
7676
else if (upper_tolerance.size() == 6)
7777
{

0 commit comments

Comments
 (0)