Skip to content
Snippets Groups Projects
Commit f7dfa93b authored by Andrei Herdt's avatar Andrei Herdt Committed by Olivier Stasse
Browse files

Minor changes

parent a7dc546c
No related branches found
No related tags found
No related merge requests found
......@@ -105,18 +105,6 @@ void LinearizedInvertedPendulum2D::SetRobotControlPeriod(const double & aT)
}
com_t LinearizedInvertedPendulum2D::operator ()() const
{
return m_CoM;
}
void LinearizedInvertedPendulum2D::operator ()( com_t CoM )
{
m_CoM = CoM;
}
void LinearizedInvertedPendulum2D::GetState(MAL_VECTOR_TYPE(double) &lxk)
{
//For compability reasons
......
......@@ -110,6 +110,7 @@ namespace PatternGeneratorJRL
/*! \brief State of the LIPM at the \f$k\f$ eme iteration
\f$ x_k = [ c_x \dot{c}_x \ddot{c}_x c_y \dot{c}_y \ddot{c}_y\f$ */
MAL_VECTOR(m_xk,double);
com_t m_CoM;
/* ! \brief Vector of ZMP */
......@@ -141,10 +142,12 @@ namespace PatternGeneratorJRL
void SetRobotControlPeriod(const double &);
/// \brief Accessor
com_t operator ()() const;
inline const com_t operator ()() const
{return m_CoM;};
/// \brief Accessor
void operator ()( com_t CoM );
inline void operator ()( com_t CoM )
{m_CoM = CoM;};
/*! Get state. */
void GetState(MAL_VECTOR_TYPE(double) &lxk);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment