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

time constrain

parent 38a627fd
No related merge requests found
......@@ -127,7 +127,7 @@ void ImageAnswer(const asclinic_pkg::position& msg) {
constrain_time = ros::Time::now();
constrain_duration = constrain_time - begin_time;
float temp_value = constrain_duration.toSec();
if (temp_value<30) {
if (temp_value < 50) {
return;
}
// Check if elapsed time is less than 0.5 seconds
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment