Skip to content
Snippets Groups Projects
Commit 6b6f1ccc authored by Christian Dreher's avatar Christian Dreher
Browse files

feature: Implement disableAndStop and enable for PlatformUnitExecutor

parent e8217967
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,21 @@ namespace armarx::nav::server
void PlatformUnitExecutor::move(const core::Twist& twist)
{
platformUnit->move(twist.linear.x(), twist.linear.y(), twist.angular.z());
if (enabled.get())
{
platformUnit->move(twist.linear.x(), twist.linear.y(), twist.angular.z());
}
}
void PlatformUnitExecutor::disableAndStop()
{
enabled.set(false);
platformUnit->move(0, 0, 0);
}
void PlatformUnitExecutor::enable()
{
enabled.set(true);
}
}
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