This repository has been archived by the owner on Sep 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'WBM-Class' into updateRepo
- Loading branch information
Showing
201 changed files
with
55,875 additions
and
3,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
* Copyright (C) 2014 Robotics, Brain and Cognitive Sciences - Istituto Italiano di Tecnologia | ||
* Authors: Naveen Kuppuswamy | ||
* email: [email protected] | ||
* modified by: Martin Neururer; email: [email protected]; date: June, 2016 & January, 2017 | ||
* | ||
* The development of this software was supported by the FP7 EU projects | ||
* CoDyCo (No. 600716 ICT 2011.2.1 Cognitive Systems and Robotics (b)) | ||
|
@@ -20,77 +21,89 @@ | |
#ifndef COMPONENTNMAINTAINER_H | ||
#define COMPONENTNMAINTAINER_H | ||
|
||
//standard includes | ||
#include <string.h> | ||
|
||
// external headers | ||
// global includes | ||
#include <mex.h> | ||
|
||
// library includes | ||
|
||
// local includes | ||
|
||
// forward declarations | ||
namespace mexWBIComponent{ | ||
namespace mexWBIComponent | ||
{ | ||
class ModelState; | ||
class ModelComponent; | ||
class ModelJointLimits; | ||
class ModelUpdateState; | ||
// ------------------------------------ | ||
// kinematic/dynamic function classes: | ||
// ------------------------------------ | ||
class ModelCentroidalMomentum; | ||
class ModelCoriolisBiasForces; | ||
class ModelDJdq; | ||
class ModelForwardKinematics; | ||
class ModelGeneralizedBiasForces; | ||
class ModelGetFloatingBaseState; | ||
class ModelGetState; | ||
class ModelGeneralisedBiasForces; | ||
class ModelDjDq; | ||
class ModelGravityBiasForces; | ||
class ModelInitialize; | ||
class ModelInitializeURDF; | ||
class ModelInverseDynamics; | ||
class ModelJacobian; | ||
class ModelInitialiseURDF; | ||
class ModelForwardKinematics; | ||
class ModelVisualizeTrajectory; | ||
class ModelCentroidalMomentum; | ||
class ModelJointLimits; | ||
class ModelMassMatrix; | ||
class ModelSetWorldFrame; | ||
class ModelInitialise; | ||
class ModelTransformationMatrix; | ||
class ModelUpdateState; | ||
} | ||
// #include "modelsetworldlink.h" | ||
|
||
namespace mexWBIComponent | ||
{ | ||
class ComponentManager | ||
{ | ||
public: | ||
|
||
static ComponentManager *getInstance(std::string robotName = "icub"); | ||
|
||
/** | ||
* Delete the (static) instance of this component, | ||
* and set the instance pointer to NULL. | ||
*/ | ||
static void deleteInstance(); | ||
|
||
bool processFunctionCall(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]); | ||
void cleanup(); | ||
~ComponentManager(void); | ||
|
||
//int getDofs(); | ||
private: | ||
ComponentManager(std::string); | ||
static ComponentManager *componentManager; | ||
void initialise(std::string); | ||
|
||
ModelState *modelState; | ||
ModelComponent *currentComponent; | ||
ModelJointLimits *modelJointLimits; | ||
ModelMassMatrix *modelMassMatrix; | ||
ModelUpdateState *modelUpdateState; | ||
ModelGetState *modelGetState; | ||
ModelGeneralisedBiasForces *modelGeneralisedBiasForces; | ||
ModelDjDq *modelDjDq; | ||
ModelJacobian *modelJacobian; | ||
ModelInitialise *modelInitialise; | ||
ModelInitialiseURDF *modelInitialiseURDF; | ||
ModelForwardKinematics *modelForwardKinematics; | ||
ModelVisualizeTrajectory *modelVisualizeTrajectory; | ||
ModelCentroidalMomentum *modelCentroidalMomentum; | ||
ModelSetWorldFrame *modelSetWorldFrame; | ||
|
||
int numDof; | ||
|
||
//static wbi::iWholeBodyModel *robotModel; | ||
std::map <std::string, ModelComponent*> componentList; | ||
}; | ||
class ComponentManager | ||
{ | ||
public: | ||
static ComponentManager *getInstance(std::string robotName = "icub"); | ||
|
||
bool processFunctionCall(int nlhs, mxArray **plhs, int nrhs, const mxArray **prhs); | ||
|
||
/** | ||
* Delete the (static) instance of this component, | ||
* and set the instance pointer to 0. | ||
*/ | ||
static void deleteInstance(); | ||
|
||
~ComponentManager(); | ||
|
||
private: | ||
ComponentManager(std::string robotName); | ||
void initialise(std::string robotName); | ||
|
||
static void cleanup(); | ||
|
||
static ComponentManager *componentManager; | ||
|
||
static ModelState *modelState; | ||
static ModelComponent *currentComponent; | ||
|
||
static ModelCentroidalMomentum *modelCentroidalMomentum; | ||
static ModelCoriolisBiasForces *modelCoriolisBiasForces; | ||
static ModelDJdq *modelDJdq; | ||
static ModelForwardKinematics *modelForwardKinematics; | ||
static ModelGeneralizedBiasForces *modelGeneralizedBiasForces; | ||
static ModelGetFloatingBaseState *modelGetFloatingBaseState; | ||
static ModelGetState *modelGetState; | ||
static ModelGravityBiasForces *modelGravityBiasForces; | ||
static ModelInitialize *modelInitialize; | ||
static ModelInitializeURDF *modelInitializeURDF; | ||
static ModelInverseDynamics *modelInverseDynamics; | ||
static ModelJacobian *modelJacobian; | ||
static ModelJointLimits *modelJointLimits; | ||
static ModelMassMatrix *modelMassMatrix; | ||
static ModelSetWorldFrame *modelSetWorldFrame; | ||
static ModelTransformationMatrix *modelTransformationMatrix; | ||
static ModelUpdateState *modelUpdateState; | ||
|
||
static int numDof; | ||
static std::map<std::string, ModelComponent*> componentList; | ||
}; | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,4 @@ | |
* Public License for more details | ||
*/ | ||
|
||
|
||
#define MEX_WBMODEL_MAX_NUM_JOINTS 35 |
Oops, something went wrong.