Skip to content

Commit

Permalink
Fixed typos in ContinuousDynamicalSystem component
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Mar 26, 2021
1 parent b714a9d commit 84e69ad
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ template <class _Derived> class DynamicalSystem
* @param handler pointer to the parameter handler.
* @return true in case of success/false otherwise.
*/
bool initalize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);
bool initialize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);

/**
* Set the state of the dynamical system.
Expand Down Expand Up @@ -131,10 +131,10 @@ template <class _Derived> class DynamicalSystem
};

template <class _Derived>
bool DynamicalSystem<_Derived>::initalize(
bool DynamicalSystem<_Derived>::initialize(
std::weak_ptr<ParametersHandler::IParametersHandler> handler)
{
return this->derived().initalize(handler);
return this->derived().initialize(handler);
}

template <class _Derived> bool DynamicalSystem<_Derived>::setState(const State& state)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class FixedBaseDynamics : public DynamicalSystem<FixedBaseDynamics>
* | `gravity` | `double` | Value of the Gravity. If not defined Math::StandardAccelerationOfGravitation is used | No |
* @return true in case of success/false otherwise.
*/
bool initalize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);
bool initialize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);

/**
* Set a kinDynComputations object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class FloatingBaseDynamicsWithCompliantContacts
* | `rho` | `double` | Baumgarte stabilization parameter over the SO(3) group. The default value is 0.01 | No |
* @return true in case of success/false otherwise.
*/
bool initalize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);
bool initialize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);

/**
* Set a kinDynComputations object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class FloatingBaseSystemKinematics : public DynamicalSystem<FloatingBaseSystemKi
* | `rho` | `double` | Baumgarte stabilization parameter over the SO(3) group. The default value is 0.01 | No |
* @return true in case of success/false otherwise.
*/
bool initalize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);
bool initialize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);

/**
* Set the state of the dynamical system.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class LinearTimeInvariantSystem : public DynamicalSystem<LinearTimeInvariantSyst
* @param handler pointer to the parameter handler.
* @return true in case of success/false otherwise.
*/
bool initalize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);
bool initialize(std::weak_ptr<ParametersHandler::IParametersHandler> handler);

/**
* Set the state of the dynamical system.
Expand Down
4 changes: 2 additions & 2 deletions src/ContinuousDynamicalSystem/src/FixedBaseDynamics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ using namespace BipedalLocomotion;
using namespace BipedalLocomotion::ContinuousDynamicalSystem;
using namespace BipedalLocomotion::ParametersHandler;

bool FixedBaseDynamics::initalize(std::weak_ptr<IParametersHandler> handler)
bool FixedBaseDynamics::initialize(std::weak_ptr<IParametersHandler> handler)
{
constexpr auto logPrefix = "[FixedBaseDynamics::initalize]";
constexpr auto logPrefix = "[FixedBaseDynamics::initialize]";

auto ptr = handler.lock();
if (ptr == nullptr)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ using namespace BipedalLocomotion;
using namespace BipedalLocomotion::ContinuousDynamicalSystem;
using namespace BipedalLocomotion::ParametersHandler;

bool FloatingBaseDynamicsWithCompliantContacts::initalize(std::weak_ptr<IParametersHandler> handler)
bool FloatingBaseDynamicsWithCompliantContacts::initialize(std::weak_ptr<IParametersHandler> handler)
{
constexpr auto logPrefix = "[FloatingBaseDynamicsWithCompliantContacts::initalize]";
constexpr auto logPrefix = "[FloatingBaseDynamicsWithCompliantContacts::initialize]";

auto ptr = handler.lock();
if (ptr == nullptr)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
using namespace BipedalLocomotion::ContinuousDynamicalSystem;
using namespace BipedalLocomotion::ParametersHandler;

bool FloatingBaseSystemKinematics::initalize(std::weak_ptr<IParametersHandler> handler)
bool FloatingBaseSystemKinematics::initialize(std::weak_ptr<IParametersHandler> handler)
{
constexpr auto logPrefix = "[FloatingBaseSystemKinematics::initalize]";
constexpr auto logPrefix = "[FloatingBaseSystemKinematics::initialize]";

auto ptr = handler.lock();
if (ptr == nullptr)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bool LinearTimeInvariantSystem::dynamics(const double& time, StateDerivative& st
return true;
}

bool LinearTimeInvariantSystem::initalize(
bool LinearTimeInvariantSystem::initialize(
std::weak_ptr<ParametersHandler::IParametersHandler> handler)
{
return true;
Expand Down

0 comments on commit 84e69ad

Please sign in to comment.