Skip to content

Commit 674fb1b

Browse files
committed
clang-format
1 parent b7785a9 commit 674fb1b

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

tesseract_motion_planners/trajopt/src/profile/trajopt_default_plan_profile.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,18 @@ void TrajOptDefaultPlanProfile::addConstraintErrorFunctions(trajopt::ProblemCons
280280
}
281281
}
282282

283-
bool TrajOptDefaultPlanProfile::isFixedCartesian() const {
283+
bool TrajOptDefaultPlanProfile::isFixedCartesian() const
284+
{
284285
// If the term type is constraint and all coefficients are non-zero
285-
return (term_type == trajopt::TermType::TT_CNT) && (abs(cartesian_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
286+
return (term_type == trajopt::TermType::TT_CNT) &&
287+
(abs(cartesian_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
286288
}
287289

288-
bool TrajOptDefaultPlanProfile::isFixedJoint() const {
290+
bool TrajOptDefaultPlanProfile::isFixedJoint() const
291+
{
289292
// If the term type is constraint and all coefficients are non-zero
290-
return (term_type == trajopt::TermType::TT_CNT) && (abs(joint_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
293+
return (term_type == trajopt::TermType::TT_CNT) &&
294+
(abs(joint_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
291295
}
292296

293297
tinyxml2::XMLElement* TrajOptDefaultPlanProfile::toXML(tinyxml2::XMLDocument& doc) const

tesseract_motion_planners/trajopt_ifopt/src/profile/trajopt_ifopt_default_plan_profile.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,18 @@ void TrajOptIfoptDefaultPlanProfile::apply(TrajOptIfoptProblem& problem,
127127
}
128128
}
129129

130-
bool TrajOptIfoptDefaultPlanProfile::isFixedCartesian() const {
130+
bool TrajOptIfoptDefaultPlanProfile::isFixedCartesian() const
131+
{
131132
// If the term type is constraint and all coefficients are non-zero
132-
return (term_type == TrajOptIfoptTermType::CONSTRAINT) && (abs(cartesian_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
133+
return (term_type == TrajOptIfoptTermType::CONSTRAINT) &&
134+
(abs(cartesian_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
133135
}
134136

135-
bool TrajOptIfoptDefaultPlanProfile::isFixedJoint() const {
137+
bool TrajOptIfoptDefaultPlanProfile::isFixedJoint() const
138+
{
136139
// If the term type is constraint and all coefficients are non-zero
137-
return (term_type == TrajOptIfoptTermType::CONSTRAINT) && (abs(joint_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
140+
return (term_type == TrajOptIfoptTermType::CONSTRAINT) &&
141+
(abs(joint_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
138142
}
139143

140144
tinyxml2::XMLElement* TrajOptIfoptDefaultPlanProfile::toXML(tinyxml2::XMLDocument& /*doc*/) const

0 commit comments

Comments
 (0)