Skip to content

Commit

Permalink
Add the StandardAccelerationOfGravitation in the Math component
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Feb 25, 2021
1 parent a1c4b45 commit a4af4be
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(H_PREFIX include/BipedalLocomotion/Math)

add_bipedal_locomotion_library(
NAME Math
PUBLIC_HEADERS ${H_PREFIX}/CARE.h
PUBLIC_HEADERS ${H_PREFIX}/CARE.h ${H_PREFIX}/Constants.h
SOURCES src/CARE.cpp
PUBLIC_LINK_LIBRARIES Eigen3::Eigen BipedalLocomotion::ParametersHandler
SUBDIRECTORIES tests)
24 changes: 24 additions & 0 deletions src/Math/include/BipedalLocomotion/Math/Constants.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* @file Costants.h
* @authors Giulio Romualdi
* @copyright 2021 Istituto Italiano di Tecnologia (IIT). This software may be modified and
* distributed under the terms of the GNU Lesser General Public License v2.1 or any later version.
*/

#ifndef BIPEDAL_LOCOMOTION_MATH_CONSTANTS_H
#define BIPEDAL_LOCOMOTION_MATH_CONSTANTS_H

namespace BipedalLocomotion
{
namespace Math
{
/**
* The standard acceleration due to gravity (or standard acceleration of free fall), sometimes
* abbreviated as standard gravity, is the nominal gravitational
* acceleration of an object in a vacuum near the surface of the Earth.
*/
constexpr double StandardAccelerationOfGravitation = 9.80665;
} // namespace Math
} // namespace BipedalLocomotion

#endif // BIPEDAL_LOCOMOTION_MATH_CONSTANTS_H

0 comments on commit a4af4be

Please sign in to comment.