Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ros_camera_bev
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yangxue
ros_camera_bev
Commits
c1348888
Commit
c1348888
authored
Apr 10, 2025
by
yangxue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug obj.valid
parent
7842dfc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
vision_3d.cpp
src/camera_bev_infer/src/vision_transform/vision_3d.cpp
+13
-5
No files found.
src/camera_bev_infer/src/vision_transform/vision_3d.cpp
View file @
c1348888
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* @Date: 2023-09-03 03:13:41
* @Date: 2023-09-03 03:13:41
* @email: xin.wang@waytous.com
* @email: xin.wang@waytous.com
* @LastEditors: yangxue xue.yang@waytous.com
* @LastEditors: yangxue xue.yang@waytous.com
* @LastEditTime: 2025-04-
02 08:12:15
* @LastEditTime: 2025-04-
10 09:24:17
*/
*/
...
@@ -974,7 +974,11 @@ int Visione_3D::Process_Instance_Objects(object_Seg_info& obj, const cv::Mat& in
...
@@ -974,7 +974,11 @@ int Visione_3D::Process_Instance_Objects(object_Seg_info& obj, const cv::Mat& in
}
}
bool
valid
=
Tracks
[
obj
.
track_id
].
valid
;
bool
valid
=
Tracks
[
obj
.
track_id
].
valid
;
std
::
cout
<<
"obj: "
<<
obj
.
track_id
<<
","
<<
obj
.
name
<<
" with project ratio: "
<<
project_ratio
<<
", "
<<
project_count
<<
std
::
endl
;
std
::
cout
<<
"obj: "
<<
obj
.
track_id
<<
","
<<
obj
.
name
<<
" with project ratio: "
<<
project_ratio
<<
", "
<<
project_count
<<
std
::
endl
;
if
(
valid
)
std
::
cout
<<
"valid----------------"
<<
std
::
endl
;
if
(
valid
)
{
std
::
cout
<<
"valid track----------------"
<<
std
::
endl
;
}
else
{
std
::
cout
<<
"invalid track----------------"
<<
std
::
endl
;
}
if
(
valid
){
if
(
valid
){
Tracks
[
obj
.
track_id
].
last_update_age
=
0
;
// update
Tracks
[
obj
.
track_id
].
last_update_age
=
0
;
// update
}
}
...
@@ -991,7 +995,11 @@ int Visione_3D::Process_Instance_Objects(object_Seg_info& obj, const cv::Mat& in
...
@@ -991,7 +995,11 @@ int Visione_3D::Process_Instance_Objects(object_Seg_info& obj, const cv::Mat& in
pointEnough
=
true
;
pointEnough
=
true
;
}
}
}
}
if
(
pointEnough
)
std
::
cout
<<
"point enough----------------"
<<
std
::
endl
;
if
(
pointEnough
)
{
std
::
cout
<<
"point enough----------------"
<<
std
::
endl
;
}
else
{
std
::
cout
<<
"point not enough----------------"
<<
std
::
endl
;
}
if
(
valid
){
if
(
valid
){
if
(
pointEnough
)
if
(
pointEnough
)
...
@@ -1002,9 +1010,9 @@ int Visione_3D::Process_Instance_Objects(object_Seg_info& obj, const cv::Mat& in
...
@@ -1002,9 +1010,9 @@ int Visione_3D::Process_Instance_Objects(object_Seg_info& obj, const cv::Mat& in
insobj
.
fConfidence
=
obj
.
fConfidence
;
insobj
.
fConfidence
=
obj
.
fConfidence
;
vGrid
.
vInsObjs
.
push_back
(
insobj
);
vGrid
.
vInsObjs
.
push_back
(
insobj
);
obj
.
valid
=
obj
.
valid
+
1
;
obj
.
valid
=
obj
.
valid
+
1
;
//
std::cout<< obj.track_id<<"valid----------------"<<std::endl;
std
::
cout
<<
obj
.
track_id
<<
"valid----------------"
<<
std
::
endl
;
}
else
{
}
else
{
std
::
cout
<<
obj
.
track_id
<<
"not enough----------------"
<<
std
::
endl
;
std
::
cout
<<
obj
.
track_id
<<
"
valid but
not enough----------------"
<<
std
::
endl
;
return
-
1
;
// depth estimination
return
-
1
;
// depth estimination
}
}
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment