Skip to content
Snippets Groups Projects

fixes due to changes in simox: some methods are now const

Merged Fabian Reister requested to merge feature/robot-const-correctness into master
2 files
+ 12
12
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -90,7 +90,7 @@ namespace armarx
return _root;
}
bool RemoteRobot::hasRobotNode(const std::string& robotNodeName)
bool RemoteRobot::hasRobotNode(const std::string& robotNodeName) const
{
if (_cachedNodes.find(name) == _cachedNodes.end())
{
@@ -103,7 +103,7 @@ namespace armarx
}
bool RemoteRobot::hasRobotNode(RobotNodePtr robotNode)
bool RemoteRobot::hasRobotNode(RobotNodePtr robotNode) const
{
return this->hasRobotNode(robotNode->getName());
@@ -159,7 +159,7 @@ namespace armarx
}
}
bool RemoteRobot::hasRobotNodeSet(const std::string& name)
bool RemoteRobot::hasRobotNodeSet(const std::string& name) const
{
return _robot->hasRobotNodeSet(name);
}
@@ -539,17 +539,17 @@ namespace armarx
// Private (unused methods)
bool RemoteRobot::hasEndEffector(const std::string& endEffectorName)
bool RemoteRobot::hasEndEffector(const std::string& endEffectorName) const
{
return false;
}
EndEffectorPtr RemoteRobot::getEndEffector(const std::string& endEffectorName)
EndEffectorPtr RemoteRobot::getEndEffector(const std::string& endEffectorName) const
{
return EndEffectorPtr();
}
void RemoteRobot::getEndEffectors(std::vector<EndEffectorPtr>& storeEEF) {}
void RemoteRobot::getEndEffectors(std::vector<EndEffectorPtr>& storeEEF) const {}
void RemoteRobot::setRootNode(RobotNodePtr node) {}
void RemoteRobot::registerRobotNode(RobotNodePtr node) {}
void RemoteRobot::deregisterRobotNode(RobotNodePtr node) {}
Loading