Commit 3e6898fd authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[Format] add clang format

parent 59e9e99f
---
ColumnLimit: 80
Standard: C++03
...
......@@ -37,11 +37,8 @@ using namespace PatternGeneratorJRL;
CoMAndFootOnlyStrategy::CoMAndFootOnlyStrategy(
SimplePluginManager *aSimplePluginManager)
: GlobalStrategyManager(aSimplePluginManager),
m_NbOfHitBottom(0),
m_BufferSizeLimit(0)
{
}
: GlobalStrategyManager(aSimplePluginManager), m_NbOfHitBottom(0),
m_BufferSizeLimit(0) {}
CoMAndFootOnlyStrategy::~CoMAndFootOnlyStrategy() {}
......
......@@ -79,7 +79,7 @@ protected:
std::vector<double> m_derivative_control_points;
std::vector<double> m_sec_derivative_control_points;
std::vector<std::vector<double>> m_basis_functions;
std::vector<std::vector<double> > m_basis_functions;
std::vector<double> m_basis_functions_derivative;
std::vector<double> m_basis_functions_sec_derivative;
......
......@@ -641,7 +641,7 @@ void AnalyticalMorisawaCompact::GetZMPDiscretization(
COMStates, ZMPPositions, LeftFootAbsolutePositions,
RightFootAbsolutePositions, outputDeltaCOMTraj_deq);
#endif
vector<vector<double>> filteredZMPMB(n, vector<double>(2, 0.0));
vector<vector<double> > filteredZMPMB(n, vector<double>(2, 0.0));
for (unsigned int i = 0; i < n; ++i) {
for (int j = 0; j < 3; j++) {
COMStates[i].x[j] += outputDeltaCOMTraj_deq[i].x[j];
......
......@@ -280,7 +280,7 @@ int DynamicFilter::OnLinefilter(
zmpmb_i_[i * inc] = ZMPMB_vec_[i];
}
vector<vector<double>> dZMPMB_vec(N, vector<double>(2, 0.0));
vector<vector<double> > dZMPMB_vec(N, vector<double>(2, 0.0));
dZMPMB_vec[0][0] = (ZMPMB_vec_[1][0] - ZMPMB_vec_[0][0]) / inc;
dZMPMB_vec[0][1] = (ZMPMB_vec_[1][1] - ZMPMB_vec_[0][1]) / inc;
dZMPMB_vec[N - 1][0] =
......
......@@ -226,7 +226,7 @@ private:
/// \brief used to predict the next step using the current solution
/// allow the computation of the complete preview
vector<vector<double>> FootPrw_vec;
vector<vector<double> > FootPrw_vec;
/// \brief Index where to begin the interpolation
unsigned CurrentIndex_;
......
......@@ -278,8 +278,8 @@ private:
// Obstacle constraint
unsigned nc_obs_;
std::vector<std::vector<Eigen::MatrixXd>> Hobs_;
std::vector<std::vector<Eigen::VectorXd>> Aobs_;
std::vector<std::vector<Eigen::MatrixXd> > Hobs_;
std::vector<std::vector<Eigen::VectorXd> > Aobs_;
std::vector<Eigen::VectorXd> UBobs_;
std::vector<Circle> obstacles_;
Eigen::VectorXd qp_J_obs_i_;
......
......@@ -264,7 +264,7 @@ void OneStep::fillInDebugFile() {
fillInDebugVector();
ofstream aof;
/// Create filename
string aFileName;
assert(!m_TestName.empty());
......@@ -274,7 +274,7 @@ void OneStep::fillInDebugFile() {
if (m_NbOfIt == 0) {
/// Write description file if this is the first iteration
writeDescriptionFile();
/// Erase the file if we start.
aof.open(aFileName.c_str(), ofstream::out);
aof.close();
......
......@@ -97,7 +97,7 @@ void readData(vector<COMState> &comPos_, vector<FootAbsolutePosition> &rf_,
vector<FootAbsolutePosition> &lf_,
vector<HandAbsolutePosition> &rh_,
vector<HandAbsolutePosition> &lh_, vector<ZMPPosition> &zmp_) {
vector<vector<double>> data_;
vector<vector<double> > data_;
data_.clear();
std::string astateFile =
"/home/mnaveau/devel/ros_unstable/src/jrl/jrl-walkgen/_build-RELEASE/"
......
......@@ -103,7 +103,7 @@ public:
os << "<===============================================================>"
<< endl;
os << "Computing the ZMPMB" << endl;
vector<vector<double>> zmpmb(comPos.size(), vector<double>(2));
vector<vector<double> > zmpmb(comPos.size(), vector<double>(2));
for (unsigned int i = 0; i < comPos.size(); ++i) {
dynamicfilter_->ComputeZMPMB(samplingPeriod, comPos[i], lfFoot[i],
rfFoot[i], zmpmb[i], stage0, i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment