Skip to content

Commit be2e055

Browse files
committed
Fix tolerance size
1 parent d687b6f commit be2e055

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
@@ -100,7 +100,7 @@ std::shared_ptr<trajopt::TermInfo> createCartesianWaypointTermInfo(int index,
100100

101101
if (lower_tolerance.size() == 1)
102102
{
103-
pose_info->lower_tolerance = Eigen::Vector3d::Constant(lower_tolerance(0));
103+
pose_info->lower_tolerance = Eigen::VectorXd::Constant(6, lower_tolerance(0));
104104
}
105105
else if (lower_tolerance.size() == 6)
106106
{
@@ -109,7 +109,7 @@ std::shared_ptr<trajopt::TermInfo> createCartesianWaypointTermInfo(int index,
109109

110110
if (upper_tolerance.size() == 1)
111111
{
112-
pose_info->upper_tolerance = Eigen::Vector3d::Constant(upper_tolerance(0));
112+
pose_info->upper_tolerance = Eigen::VectorXd::Constant(6, upper_tolerance(0));
113113
}
114114
else if (upper_tolerance.size() == 6)
115115
{

0 commit comments

Comments
 (0)