Skip to content

Commit

Permalink
Clang formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marrts committed Jul 6, 2023
1 parent ea96ab1 commit a447728
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ class FixedJointWaypointSampler : public WaypointSampler<FloatType>

friend std::ostream& operator<<(std::ostream& out, const FixedJointWaypointSampler<FloatType>& wps)
{
out << wps.fixed_joint_position_->values;
return out;
out << wps.fixed_joint_position_->values;
return out;
}


private:
typename State<FloatType>::ConstPtr fixed_joint_position_;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ std::vector<StateSample<FloatType>> FixedJointWaypointSampler<FloatType>::sample
return { StateSample<FloatType>{ fixed_joint_position_, static_cast<FloatType>(0.0) } };
}


} // namespace descartes_light

#endif // DESCARTES_SAMPLERS_SAMPLERS_IMPL_FIXED_JOINT_WAYPOINT_SAMPLER_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ BuildStatus LadderGraphSolver<FloatType>::buildImpl(
std::sort(status.failed_edges.begin(), status.failed_edges.end());

// CONSOLE_BRIDGE_logDebug has a limited buffer size and can't handle outputting a large graph.
if(console_bridge::getLogLevel() <= console_bridge::CONSOLE_BRIDGE_LOG_DEBUG)
if (console_bridge::getLogLevel() <= console_bridge::CONSOLE_BRIDGE_LOG_DEBUG)
{
std::cout << graph_;
}
}

reportFailedVertices(status.failed_vertices);
reportFailedEdges(status.failed_edges);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ struct Rung

std::size_t getEdgeCount()
{
std::size_t num_edges = 0;
for (const auto& node : nodes)
num_edges += node.edges.size();
return num_edges;
std::size_t num_edges = 0;
for (const auto& node : nodes)
num_edges += node.edges.size();
return num_edges;
}
};

Expand Down Expand Up @@ -193,7 +193,8 @@ class LadderGraph
out << "Rung # " << failed_id << "\n";
for (Eigen::Index i = 0; i < state1->values.rows(); i++)
{
out << std::setprecision(4) << std::fixed << "\t" << state1->values[i] << "\t|\t" << state2->values[i] << "\n";
out << std::setprecision(4) << std::fixed << "\t" << state1->values[i] << "\t|\t" << state2->values[i]
<< "\n";
}
}
}
Expand Down

0 comments on commit a447728

Please sign in to comment.