Skip to content
Snippets Groups Projects
Commit 2783a10e authored by Nikolaus Vahrenkamp's avatar Nikolaus Vahrenkamp
Browse files

changed to dynamic_pointer_cast to avoid deprecated sherd_pointer_cast calls

parent 91ca9cf0
No related branches found
No related tags found
No related merge requests found
...@@ -347,7 +347,7 @@ namespace armarx ...@@ -347,7 +347,7 @@ namespace armarx
DIKMap::iterator itDIK = localDIKMap.find(data.nodeSetName); DIKMap::iterator itDIK = localDIKMap.find(data.nodeSetName);
if(itDIK == localDIKMap.end()) if(itDIK == localDIKMap.end())
localDIKMap[data.nodeSetName].reset(new EDifferentialIK(nodeSet, localRobot->getRootNode(), VirtualRobot::JacobiProvider::eSVDDamped)); localDIKMap[data.nodeSetName].reset(new EDifferentialIK(nodeSet, localRobot->getRootNode(), VirtualRobot::JacobiProvider::eSVDDamped));
EDifferentialIKPtr dIk = boost::shared_dynamic_cast<EDifferentialIK>(localDIKMap[data.nodeSetName]); EDifferentialIKPtr dIk = boost::dynamic_pointer_cast<EDifferentialIK>(localDIKMap[data.nodeSetName]);
dIk->clearGoals(); dIk->clearGoals();
} }
...@@ -433,7 +433,7 @@ namespace armarx ...@@ -433,7 +433,7 @@ namespace armarx
for(; itDIK != localDIKMap.end(); itDIK++) for(; itDIK != localDIKMap.end(); itDIK++)
{ {
RobotNodeSetPtr robotNodeSet = localRobot->getRobotNodeSet(itDIK->first); RobotNodeSetPtr robotNodeSet = localRobot->getRobotNodeSet(itDIK->first);
EDifferentialIKPtr dIK = boost::shared_dynamic_cast<EDifferentialIK>(itDIK->second); EDifferentialIKPtr dIK = boost::dynamic_pointer_cast<EDifferentialIK>(itDIK->second);
// ARMARX_VERBOSE << deactivateSpam(1) << "Old Pos: \n" << robotNodeSet->getTCP()->getGlobalPose(); // ARMARX_VERBOSE << deactivateSpam(1) << "Old Pos: \n" << robotNodeSet->getTCP()->getGlobalPose();
// dIK->setVerbose(true); // dIK->setVerbose(true);
Eigen::VectorXf jointDelta; Eigen::VectorXf jointDelta;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment