Skip to content
Snippets Groups Projects
Commit ed9a9c65 authored by Irene Garcia Camacho's avatar Irene Garcia Camacho
Browse files

Solved a problem to stop the walking motion

cmd_vel_timer.stop() function was called before publishing cmd_vel with 0
parent ac3af624
No related branches found
No related tags found
1 merge request!4Filtered localization
......@@ -82,11 +82,11 @@ void CWalkModule::state_machine(void)
if(this->cancel_pending)
{
this->cancel_pending=false;
this->cmd_vel_timer.stop();
this->state=WALK_MODULE_WAIT;
}
break;
case WALK_MODULE_WAIT: ROS_INFO("CWalkModule : state WAIT");
this->cmd_vel_timer.stop();
if(this->walking)
{
if(this->start_walking)
......
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