Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwason committed Aug 1, 2024
1 parent 23bf341 commit 97a647a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ void tesseract_planning::CartesianWaypointPoly::print(const std::string& prefix)
bool tesseract_planning::CartesianWaypointPoly::hasSeed() const
{
const auto& seed = getInterface().getSeed();
return (seed.position.size() != 0 && !seed.joint_names.empty() && static_cast<std::size_t>(seed.position.size()) == seed.joint_names.size());
return (seed.position.size() != 0 && !seed.joint_names.empty() &&
static_cast<std::size_t>(seed.position.size()) == seed.joint_names.size());
}

void tesseract_planning::CartesianWaypointPoly::clearSeed() { getInterface().setSeed(tesseract_common::JointState()); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ bool RuckigTrajectorySmoothing::compute(TrajectoryContainer& trajectory,
Eigen::VectorXd new_duration_from_previous = original_duration_from_previous;

double time_from_start = original_duration_from_previous(0);
for (Eigen::Index time_stretch_idx = 1; time_stretch_idx < static_cast<Eigen::Index>(num_waypoints); ++time_stretch_idx)
for (Eigen::Index time_stretch_idx = 1; time_stretch_idx < static_cast<Eigen::Index>(num_waypoints);
++time_stretch_idx)
{
assert(time_stretch_idx < original_duration_from_previous.rows());
const double duration_from_previous =
Expand Down

0 comments on commit 97a647a

Please sign in to comment.