Skip to content
Snippets Groups Projects
Commit 77bd49e4 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Add a version of ManipulationObject::clone requiring no parameters

parent a0349b5b
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,11 @@ namespace VirtualRobot
return ManipulationObjectPtr(_clone(name, colChecker, deepVisuCopy));
}
ManipulationObjectPtr ManipulationObject::clone(CollisionCheckerPtr colChecker, bool deepVisuCopy) const
{
return clone(getName(), colChecker, deepVisuCopy);
}
ManipulationObject* ManipulationObject::_clone(const std::string& name, CollisionCheckerPtr colChecker, bool deepVisuCopy) const
{
VisualizationNodePtr clonedVisualizationNode;
......
......@@ -96,6 +96,7 @@ namespace VirtualRobot
Clones this object. If no col checker is given, the one of the original object is used.
*/
ManipulationObjectPtr clone(const std::string& name, CollisionCheckerPtr colChecker = CollisionCheckerPtr(), bool deepVisuCopy = true) const;
ManipulationObjectPtr clone(CollisionCheckerPtr colChecker = CollisionCheckerPtr(), bool deepVisuCopy = true) const;
/*!
Create a standard obstacle from a mesh.
......
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