diff --git a/launch/commande.launch b/launch/commande.launch deleted file mode 100644 index b67caee..0000000 --- a/launch/commande.launch +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/launch/essai-commande.launch b/launch/essai-commande.launch new file mode 100644 index 0000000..0e5e51d --- /dev/null +++ b/launch/essai-commande.launch @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/commande.cpp b/src/commande.cpp index ff92355..904c682 100644 --- a/src/commande.cpp +++ b/src/commande.cpp @@ -42,12 +42,12 @@ class Run mvt->linear.z = dz * z_vel; ROS_INFO("z changed"); } - if (xx > x_dev_min) + if (fabs(xx) > x_dev_min) { mvt->linear.y = xx * plan_vel; // because of the kinect orientation } - if (yy > y_dev_min) + if (fabs(yy) > y_dev_min) { mvt->linear.x = yy * plan_vel; // because of the kinect orientation