Skip to content

Commit

Permalink
Fix for the legacy HT4D implementation producing invalid initial mess…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
ViktorWalter committed May 16, 2024
1 parent eed883c commit 4ea8da5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/blink_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ namespace uvdar{

// for extracting the received sequences from the AMI/4DHT
struct BlinkData{
bool valid = false;
ros::Time last_sample_time;
ros::Time last_sample_time_diagnostic;
unsigned int sample_count = -1;
Expand Down Expand Up @@ -573,6 +574,7 @@ namespace uvdar{

}
blink_data_[img_index].last_sample_time = pts_msg->stamp;
blink_data_[img_index].valid = true;

if (_debug_) {
ROS_INFO_STREAM("[UVDARBlinkProcessor]: Received contours: " << pts_msg->points.size());
Expand Down Expand Up @@ -736,6 +738,11 @@ namespace uvdar{
}

if(_use_4DHT_){

if (!(blink_data_[image_index].valid)){
return;
}

uvdar_core::ImagePointsWithFloatStamped msg;

if (_debug_){
Expand Down

0 comments on commit 4ea8da5

Please sign in to comment.