Commit dcfeb4cd authored by David Flavigne's avatar David Flavigne
Browse files

2008/01/28

	Added remove functions for hppProblemVector
parent 5f9bb719
2008/01/28
Added remove functions for hppProblemVector
2008/01/09
Make ChppCore class closer to hppModel implementation.
......
......@@ -62,6 +62,13 @@ class ChppPlanner {
*/
ktStatus addHppProblem(CkppDeviceComponentShPtr robot);
/**
\brief Remove a Problem at the end of the Problem vector.
\return a int
*/
ktStatus removeHppProblem();
/**
\brief Add a Problem at beginning of the Problem vector with the associed robot.
......@@ -71,6 +78,13 @@ class ChppPlanner {
*/
ktStatus addHppProblemAtBeginning(CkppDeviceComponentShPtr robot);
/**
\brief Remove a Problem at the beginning the Problem vector.
\return a int
*/
ktStatus removeHppProblemAtBeginning();
/**
\brief Get the number of problems in vector.
\return the number of problems in the vector
......
......@@ -75,7 +75,19 @@ ktStatus ChppPlanner::addHppProblem(CkppDeviceComponentShPtr robot)
return KD_OK;
}
// ==========================================================================
ktStatus ChppPlanner::removeHppProblem(){
if(hppProblemVector.size()){
hppProblemVector.pop_back();
mObstacleList.clear();
return KD_OK;
}
return KD_ERROR;
}
// ==========================================================================
......@@ -95,6 +107,19 @@ ktStatus ChppPlanner::addHppProblemAtBeginning(CkppDeviceComponentShPtr robot)
return KD_OK;
}
// ==========================================================================
ktStatus ChppPlanner::removeHppProblemAtBeginning(){
if(hppProblemVector.size()){
hppProblemVector.pop_front();
mObstacleList.clear();
return KD_OK;
}
return KD_ERROR;
}
// ==========================================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment