best condition assert

This commit is contained in:
Louis-Guillaume DUBOIS 2015-05-22 17:30:42 +02:00
parent 2d0d14ddf0
commit 63b30c8ff9

View file

@ -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