Skip to content

Commit b09ef53

Browse files
committed
clang-format
1 parent e5de419 commit b09ef53

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
@@ -211,14 +211,18 @@ void TrajOptDefaultPlanProfile::addConstraintErrorFunctions(trajopt::ProblemCons
211211
}
212212
}
213213

214-
bool TrajOptDefaultPlanProfile::isFixedCartesian() const {
214+
bool TrajOptDefaultPlanProfile::isFixedCartesian() const
215+
{
215216
// If the term type is constraint and all coefficients are non-zero
216-
return (term_type == trajopt::TermType::TT_CNT) && (abs(cartesian_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
217+
return (term_type == trajopt::TermType::TT_CNT) &&
218+
(abs(cartesian_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
217219
}
218220

219-
bool TrajOptDefaultPlanProfile::isFixedJoint() const {
221+
bool TrajOptDefaultPlanProfile::isFixedJoint() const
222+
{
220223
// If the term type is constraint and all coefficients are non-zero
221-
return (term_type == trajopt::TermType::TT_CNT) && (abs(joint_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
224+
return (term_type == trajopt::TermType::TT_CNT) &&
225+
(abs(joint_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
222226
}
223227

224228
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
@@ -138,14 +138,18 @@ void TrajOptIfoptDefaultPlanProfile::apply(TrajOptIfoptProblem& problem,
138138
}
139139
}
140140

141-
bool TrajOptIfoptDefaultPlanProfile::isFixedCartesian() const {
141+
bool TrajOptIfoptDefaultPlanProfile::isFixedCartesian() const
142+
{
142143
// If the term type is constraint and all coefficients are non-zero
143-
return (term_type == TrajOptIfoptTermType::CONSTRAINT) && (abs(cartesian_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
144+
return (term_type == TrajOptIfoptTermType::CONSTRAINT) &&
145+
(abs(cartesian_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
144146
}
145147

146-
bool TrajOptIfoptDefaultPlanProfile::isFixedJoint() const {
148+
bool TrajOptIfoptDefaultPlanProfile::isFixedJoint() const
149+
{
147150
// If the term type is constraint and all coefficients are non-zero
148-
return (term_type == TrajOptIfoptTermType::CONSTRAINT) && (abs(joint_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
151+
return (term_type == TrajOptIfoptTermType::CONSTRAINT) &&
152+
(abs(joint_coeff.array()) >= std::numeric_limits<double>::epsilon()).all();
149153
}
150154

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

0 commit comments

Comments
 (0)