Skip to content
Snippets Groups Projects
Commit 7a3bfeec authored by Stefan Reither's avatar Stefan Reither
Browse files

add empty method setShapeWithObjectInstance() to handUnit and ice-interface

parent d59e28bb
No related branches found
No related tags found
1 merge request!29Armar6 pick and place
......@@ -141,6 +141,10 @@ void HandUnit::setShape(const std::string& shapeName, const Ice::Current& c)
{
}
void HandUnit::setShapeWithObjectInstance(const std::string& shapeName, const std::string& objectInstanceName, const Ice::Current& c)
{
}
SingleTypeVariantListBasePtr HandUnit::getShapeNames(const Ice::Current& c)
{
......
......@@ -121,6 +121,16 @@ namespace armarx
*/
void setShape(const std::string& shapeName, const Ice::Current& c = ::Ice::Current());
/**
* @brief setShapeWithObjectInstance Send command to the hand to form a specific shape position.
* While trying to form the specified shape, collison checking with the named object instance is performed.
* The resulting joint angles of the hand might differ from the predefined joint angles for the given shape.
*
* @param shapeName Name of the well known shape that the hand should form
* @param graspedObjectInstanceName name of the object instance which is used to check for collisions while setting the shape
*/
void setShapeWithObjectInstance(const std::string& shapeName, const std::string& objectInstanceName, const Ice::Current& c = ::Ice::Current());
/**
* \return a list of strings for shape positions which can be used together with HandUnit::shape().
*/
......
......@@ -48,6 +48,7 @@ module armarx
* @param shapeName Name of the hand shape.
*/
void setShape(string shapeName);
void setShapeWithObjectInstance(string shapeName, string objectInstanceName);
/**
* getShapeNames returns a list of names of hand shapes known to the hand unit.
* @return List of known hand shape names.
......@@ -57,7 +58,6 @@ module armarx
NameValueMap getCurrentJointValues();
string getHandName();
/**
* setObjectGrasped informs the hand unit that an object has been successfully grasped.
* @param objectName Name of the object
......
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