Skip to content
Snippets Groups Projects
Commit f738ca45 authored by Simon Ottenhaus's avatar Simon Ottenhaus
Browse files

renamed methods

parent b25f4cca
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ namespace armarx ...@@ -41,7 +41,7 @@ namespace armarx
HapticObserverPropertyDefinitions(std::string prefix): HapticObserverPropertyDefinitions(std::string prefix):
ComponentPropertyDefinitions(prefix) ComponentPropertyDefinitions(prefix)
{ {
defineRequiredProperty<std::string>("HapticTopicName", "Name of the HapticUnit Topic"); defineOptionalProperty<std::string>("HapticTopicName", "HapticValues", "Name of the HapticUnit Topic");
} }
}; };
......
...@@ -31,6 +31,18 @@ ...@@ -31,6 +31,18 @@
module armarx module armarx
{ {
/*!
* \brief The Color struct
* Values in [0,1]
*/
struct DrawColor
{
float r;
float g;
float b;
};
/*! /*!
* \brief A layered drawing interface. * \brief A layered drawing interface.
* All drawing operations are identified with a layer name in order to distinguish different drawing entitties. * All drawing operations are identified with a layer name in order to distinguish different drawing entitties.
...@@ -45,7 +57,9 @@ module armarx ...@@ -45,7 +57,9 @@ module armarx
* \param poseName The internal name of the pose (can be used to update/disable the drawing). * \param poseName The internal name of the pose (can be used to update/disable the drawing).
* \param globalPose The pose in global coordinate syetem. * \param globalPose The pose in global coordinate syetem.
*/ */
void setPoseLayerVisu(string layerName, string poseName, PoseBase globalPose); void setPoseVisu(string layerName, string poseName, PoseBase globalPose);
void setLineVisu(string layerName, string lineName, Vector3Base globalPosition1, Vector3Base globalPosition2, float lineWidth, DrawColor color);
/*! /*!
* \brief setPoseVisu draws on the "debug" layer * \brief setPoseVisu draws on the "debug" layer
...@@ -53,18 +67,21 @@ module armarx ...@@ -53,18 +67,21 @@ module armarx
* \param globalPose * \param globalPose
*/ */
void setPoseDebugLayerVisu(string poseName, PoseBase globalPose); void setPoseDebugLayerVisu(string poseName, PoseBase globalPose);
void setLineDebugLayerVisu(string lineName, Vector3Base globalPosition1, Vector3Base globalPosition2, float lineWidth, DrawColor color);
/*! /*!
* \brief Remove visualization of coordinate system. * \brief Remove visualization of coordinate system.
* \param layerName The name of the drawing layer. * \param layerName The name of the drawing layer.
* \param poseName The name of the pose. * \param poseName The name of the pose.
*/ */
void removePoseLayerVisu(string layerName, string poseName); void removePoseVisu(string layerName, string poseName);
void removeLineVisu(string layerName, string lineName);
/*! /*!
* \brief Removes pose from the "debug" layer. * \brief Removes pose from the "debug" layer.
*/ */
void removePoseDebugLayerVisu(string poseName); void removePoseDebugLayerVisu(string poseName);
void removeLineDebugLayerVisu(string lineName);
}; };
......
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