From 63b30c8ff9980c4a44eb97c2b7a8ea32a583fcf8 Mon Sep 17 00:00:00 2001 From: Louis-Guillaume DUBOIS Date: Fri, 22 May 2015 17:30:42 +0200 Subject: [PATCH] best condition assert --- src/commande-new-1d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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