Moby
PenaltyConstraintHandler.h
1 /****************************************************************************
2  * Copyright 2014 Samuel Zapolsky
3  * This library is distributed under the terms of the Apache V2.0 license
4  ****************************************************************************/
5 
6 #ifndef _PENALTY_EVENT_HANDLER_H
7 #define _PENALTY_EVENT_HANDLER_H
8 
9 #include <list>
10 #include <vector>
11 #include <map>
12 #include <Ravelin/LinAlgd.h>
13 #include <Moby/Base.h>
14 #include <Moby/Types.h>
15 #include <Moby/LCP.h>
16 #include <Moby/UnilateralConstraint.h>
17 #include <Moby/UnilateralConstraintProblemData.h>
18 
19 namespace Moby {
20 
23 {
24  public:
26  void process_constraints(const std::vector<UnilateralConstraint>& constraints) const;
27  private:
28  void apply_model(const std::vector<UnilateralConstraint>& constraints) const;
29  static double sqr(double x) { return x*x; }
30 }; // end class
31 } // end namespace
32 
33 #endif
34 
Defines the mechanism for handling Penalty constraints.
Definition: PenaltyConstraintHandler.h:22
PenaltyConstraintHandler()
Sets up the default parameters for the Penalty constraint handler.
Definition: PenaltyConstraintHandler.cpp:41