Skip to content
Snippets Groups Projects
Commit 1163d060 authored by armar-user's avatar armar-user
Browse files

(FR) ObstacleAwarePlatformUnit: ensuring that max velocities are

positive
parent 29650142
No related branches found
No related tags found
No related merge requests found
......@@ -230,10 +230,14 @@ armarx::ObstacleAwarePlatformUnit::moveRelative(
void
armarx::ObstacleAwarePlatformUnit::setMaxVelocities(
const float max_pos_vel,
const float max_rot_vel,
float max_pos_vel,
float max_rot_vel,
const Ice::Current&)
{
// ensure positiveness
max_pos_vel = std::max(max_pos_vel, 0.F);
max_rot_vel = std::max(max_rot_vel, 0.F);
std::scoped_lock l{m_control_data.mutex};
m_control_data.max_vel = max_pos_vel;
m_control_data.max_rot_vel = max_rot_vel;
......
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