Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • imaroger/jrl-walkgen
  • lscherrer/jrl-walkgen
2 results
Show changes
Showing
with 7025 additions and 6012 deletions
/*
* Copyright 2009, 2010,
* Copyright 2009, 2010,
*
* Olivier Stasse
*
......@@ -18,32 +18,28 @@
* You should have received a copy of the GNU Lesser General Public License
* along with walkGenJrl. If not, see <http://www.gnu.org/licenses/>.
*
* Research carried out within the scope of the
* Research carried out within the scope of the
* Joint Japanese-French Robotics Laboratory (JRL)
*/
/*! \file GlobalStrategyManager.cpp
\brief This object defines a global strategy abstract object to generate an output
handled by the PatternGeneratorInterface object.
\brief This object defines a global strategy abstract object to generate
an output handled by the PatternGeneratorInterface object.
*/
#include <Debug.hh>
#include <deque>
#include <GlobalStrategyManagers/GlobalStrategyManager.hh>
#include <deque>
using namespace PatternGeneratorJRL;
GlobalStrategyManager::GlobalStrategyManager(SimplePluginManager *aPluginManager):
SimplePlugin(aPluginManager)
{
}
GlobalStrategyManager::GlobalStrategyManager(
SimplePluginManager *aPluginManager)
: SimplePlugin(aPluginManager) {}
void GlobalStrategyManager::SetBufferPositions(deque<ZMPPosition> * aZMPPositions,
deque<COMState> * aCOMBuffer,
deque<FootAbsolutePosition> *aLeftFootAbsolutePositions,
deque<FootAbsolutePosition> *aRightFootAbsolutePositions )
{
void GlobalStrategyManager::SetBufferPositions(
deque<ZMPPosition> *aZMPPositions, deque<COMState> *aCOMBuffer,
deque<FootAbsolutePosition> *aLeftFootAbsolutePositions,
deque<FootAbsolutePosition> *aRightFootAbsolutePositions) {
m_ZMPPositions = aZMPPositions;
m_COMBuffer = aCOMBuffer;
m_LeftFootPositions = aLeftFootAbsolutePositions;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
* Copyright 2007, 2008, 2009, 2010,
* Copyright 2007, 2008, 2009, 2010,
*
* Olivier Stasse
*
......@@ -18,7 +18,7 @@
* You should have received a copy of the GNU Lesser General Public License
* along with walkGenJrl. If not, see <http://www.gnu.org/licenses/>.
*
* Research carried out within the scope of the
* Research carried out within the scope of the
* Joint Japanese-French Robotics Laboratory (JRL)
*/
/** \file ConvexHull.h
......@@ -28,35 +28,32 @@
#include <vector>
namespace PatternGeneratorJRL {
namespace PatternGeneratorJRL
{
/*! @struct CH_Point
@ingroup geometry
Structure to store points for the convex hull computation.
*/
typedef struct {
double col, row; /* col: x, row : y */
} CH_Point;
/*! @struct CH_Point
@ingroup geometry
Structure to store points for the convex hull computation.
*/
typedef struct
{
double col,row; /* col: x, row : y */
} CH_Point;
typedef std::vector<CH_Point> ConvexHullList;
typedef std::vector<CH_Point> ConvexHullList;
/*! This class compute the convex hull in 2D. */
class ComputeConvexHull
{
public:
ComputeConvexHull();
~ComputeConvexHull();
/*! This class compute the convex hull in 2D. */
class ComputeConvexHull {
public:
ComputeConvexHull();
~ComputeConvexHull();
/*! Compute the convex hull
by applying Graham's algorithm.
@param aVecOfPoints: The set of 2D points on which the convex hull is computed.
@param TheConvexHull: The set of 2D points which give the convex hull. */
void DoComputeConvexHull(std::vector<CH_Point> aVecOfPoints,
std::vector<CH_Point> &TheConvexHull);
};
}
/*! Compute the convex hull
by applying Graham's algorithm.
@param aVecOfPoints:
The set of 2D points on which the convex hull is computed.
@param TheConvexHull:
The set of 2D points which give the convex hull. */
void DoComputeConvexHull(std::vector<CH_Point> aVecOfPoints,
std::vector<CH_Point> &TheConvexHull);
};
} // namespace PatternGeneratorJRL
#endif
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.