diff --git a/src/commande-new-1d.cpp b/src/commande-new-1d.cpp index eb0031e..41bd6b1 100644 --- a/src/commande-new-1d.cpp +++ b/src/commande-new-1d.cpp @@ -64,7 +64,7 @@ class Run mvt->linear.y = 0.; } - assert( !(mvt->linear.x > 0. && mvt->linear.y > 0.) ); + assert(mvt->linear.x == 0. || mvt->linear.y == 0.); pub.publish(mvt); ROS_INFO("cmd published"); }//end publish