Skip to content

Commit

Permalink
Fixed target_distance
Browse files Browse the repository at this point in the history
  • Loading branch information
quner2025 authored May 9, 2024
1 parent f0ed98f commit be49288
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qunerVISIONPack/src/qunerVISIONode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ void InferRequestPool::processResult(size_t index) {
//推送消息
msg.yaw = yaw;
msg.pitch = pitch;
msg.distance = distance;
msg.target_distance = distance;
publisher_->publish(msg);

}
Expand Down Expand Up @@ -447,7 +447,7 @@ void InferRequestPool::processResult(size_t index) {
//msg.data = "Type:" + std::to_string(class_id_point_outside.x) + ",Center original:" + centerStr + ",Confidence:" + std::to_string(maxClassScore_outside) + ",Distance:" + std::to_string(distance) + ",Yaw:" + std::to_string(yaw) + ",Pitch:" + std::to_string(pitch);
msg.yaw = yaw;
msg.pitch = pitch;
msg.distance = distance;
msg.target_distance = distance;

publisher_->publish(msg);
}
Expand Down Expand Up @@ -642,4 +642,4 @@ int main(int argc, char * argv[]) {
//骊山语罢清宵半,
//泪雨霖铃终不怨。
//何如薄幸锦衣郎,
//比翼连枝当日愿。
//比翼连枝当日愿。

0 comments on commit be49288

Please sign in to comment.