best condition assert
This commit is contained in:
parent
2d0d14ddf0
commit
63b30c8ff9
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class Run
|
||||||
mvt->linear.y = 0.;
|
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);
|
pub.publish(mvt);
|
||||||
ROS_INFO("cmd published");
|
ROS_INFO("cmd published");
|
||||||
}//end publish
|
}//end publish
|
||||||
|
|
Loading…
Reference in a new issue