Skip to content
Snippets Groups Projects
Commit 71d5e1e3 authored by Jiaao Liu's avatar Jiaao Liu
Browse files

limit to kalman

parent d1244612
Branches
No related tags found
No related merge requests found
...@@ -149,7 +149,7 @@ void ImageAnswer(const asclinic_pkg::position& msg) { ...@@ -149,7 +149,7 @@ void ImageAnswer(const asclinic_pkg::position& msg) {
//ROS_INFO_STREAM("new_pose: " << new_pose); //ROS_INFO_STREAM("new_pose: " << new_pose);
if (std::isnan(new_pose(0)) || std::isnan(new_pose(1)) || std::isnan(new_pose(2))) { if (std::isnan(new_pose(0)) || std::isnan(new_pose(1)) || std::isnan(new_pose(2))||new_pose(0)<-2 ||new_pose(1)<-4) {
x = odo_position(0); x = odo_position(0);
y = odo_position(1); y = odo_position(1);
phi = odo_position(2); phi = odo_position(2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment