Skip to content
Snippets Groups Projects
Commit 8228630c authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Added setter

parent f7a01a65
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,11 @@ namespace armarx
}
}
void DebugDrawerTopic::setShortSleepDuration(const std::chrono::milliseconds& duration)
{
this->shortSleepDuration = duration;
}
void DebugDrawerTopic::drawBox(
const Eigen::Vector3f& position, const Eigen::Quaternionf& orientation,
const Eigen::Vector3f& extents,
......
......@@ -32,7 +32,6 @@ namespace armarx
* All methods check whether the internal topic proxy is set, and do
* nothing if it is not set. To disable visualization by this classs
* completely, just do not set the topic.
*
*/
class DebugDrawerTopic
{
......@@ -66,14 +65,20 @@ namespace armarx
void setPoseScaleMillimeters();
/// If enabled, sleep for the given duration (e.g. a chrono duration).
template <typename DurationT>
void sleepFor(const DurationT& duration);
/// Set the duration for "short sleeps".
void setShortSleepDuration(const std::chrono::milliseconds& duration);
/// Clear all layers.
/// @param sleep If true, do a short sleep clearing.
void clearAll(bool sleep = false);
/// Clear the given layer.
/// @param sleep If true, do a short sleep clearing.
void clearLayer(const std::string& layer, bool sleep = false);
/// If enabled, sleep for the given duration (e.g. a chrono duration).
template <typename DurationT>
void sleepFor(const DurationT& duration);
void drawBox(const Eigen::Vector3f& position, const Eigen::Quaternionf& orientation,
......@@ -124,8 +129,8 @@ namespace armarx
std::chrono::milliseconds shortSleepDuration { 50 };
};
template <typename DurationT>
void DebugDrawerTopic::sleepFor(const DurationT& duration)
{
......
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