Skip to content
Snippets Groups Projects
Commit b62581ec authored by Fabian Reister's avatar Fabian Reister
Browse files

ObstacleControllerPlatformUnit:. clearing velocity buffer if new target pose is set

parent 340c3ec5
No related branches found
No related tags found
No related merge requests found
......@@ -163,6 +163,9 @@ armarx::ObstacleAvoidingPlatformUnit::moveTo(
m_control_data.pos_reached_threshold = pos_reached_threshold;
m_control_data.ori_reached_threshold = ori_reached_threshold;
// clear the buffer to prevent any movement into arbitrary directions
m_control_data.vel_history.clear();
invalidate(m_control_data.target_vel);
invalidate(m_control_data.target_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