Commit ae36ed9d authored by florent's avatar florent Committed by florent
Browse files

Remove deprecated methods.

	* include/hppCore/hppPlanner.h,
	* src/hppPlanner.cpp:
	addHppProblem and addHppProblemAtBeginning.
parent 4370050f
......@@ -68,18 +68,6 @@ class ChppPlanner {
@{
*/
/**
\brief Add a Problem to the Problem vector with the associed robot.
\param robot : a shared pointer to a robot
\return KD_OK if success, KD_ERROR otherwise
\deprecated Call addHppProblem(CkppDeviceComponentShPtr inRobot, double inPenetration) instead.
\xrefitem <send-notif> "Notification" "Send Notification" Send ID_HPP_ADD_ROBOT.
*/
ktStatus addHppProblem(CkppDeviceComponentShPtr robot) __attribute__ ((deprecated));
/**
\brief Add a Problem to the Problem vector with the associed robot.
......@@ -99,18 +87,6 @@ class ChppPlanner {
*/
ktStatus removeHppProblem();
/**
\brief Add a Problem at beginning of the Problem vector with the associed robot.
\param robot : a shared pointer to a robot
\return KD_OK if success, KD_ERROR otherwise
\deprecated Call addHppProblemAtBeginning(CkppDeviceComponentShPtr inRobot, double inPenetration) instead.
\xrefitem <send-notif> "Notification" "Send Notification" Send ID_HPP_ADD_ROBOT.
*/
ktStatus addHppProblemAtBeginning(CkppDeviceComponentShPtr robot) __attribute__ ((deprecated));
/**
\brief Add a Problem at beginning of the Problem vector with the associed robot.
......
......@@ -111,27 +111,6 @@ ChppPlanner::~ChppPlanner()
// ==========================================================================
ktStatus ChppPlanner::addHppProblem(CkppDeviceComponentShPtr robot)
{
ChppProblem hppProblem(robot, attObstacleList, HPPPLANNER_DEFAULT_PENETRATION);
ODEBUG2(":addHppProblem: adding a problem in vector");
// Add robot in vector .
hppProblemVector.push_back(hppProblem);
CkitNotificationShPtr notification
= CkitNotification::createWithPtr<ChppPlanner>(ChppPlanner::ID_HPP_ADD_ROBOT, this);
// set attribute if necessary
notification->shPtrValue<CkppDeviceComponent>(ROBOT_KEY, robot);
attNotificator->notify(notification);
return KD_OK;
}
// ==========================================================================
ktStatus ChppPlanner::addHppProblem(CkppDeviceComponentShPtr inRobot,
double inPenetration)
{
......@@ -170,24 +149,6 @@ ktStatus ChppPlanner::removeHppProblem()
// ==========================================================================
ktStatus ChppPlanner::addHppProblemAtBeginning(CkppDeviceComponentShPtr robot)
{
ChppProblem hppProblem(robot, attObstacleList, HPPPLANNER_DEFAULT_PENETRATION);
ODEBUG2(":addHppProblemAtBeginning: adding a problem");
// Add robot in vector .
hppProblemVector.push_front(hppProblem);
CkitNotificationShPtr notification = CkitNotification::createWithPtr<ChppPlanner>(ChppPlanner::ID_HPP_ADD_ROBOT, this);
// set attribute if necessary
notification->shPtrValue<CkppDeviceComponent>(ROBOT_KEY, robot);
attNotificator->notify(notification);
return KD_OK;
}
// ==========================================================================
ktStatus ChppPlanner::addHppProblemAtBeginning(CkppDeviceComponentShPtr inRobot,
double inPenetration)
{
......
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