Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_kalman_filter_src
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
jfx_kalman_filter_src
Commits
88e6e2b6
Commit
88e6e2b6
authored
Aug 12, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b4d112e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
TrackingRos2.cpp
ros2/TrackingRos2.cpp
+4
-5
No files found.
ros2/TrackingRos2.cpp
View file @
88e6e2b6
...
...
@@ -116,9 +116,8 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
float
prob
=
objsPtr
->
feature_objects
[
i
].
object
.
existence_probability
;
int
label
=
objsPtr
->
feature_objects
[
i
].
object
.
classification
[
0
].
label
;
int
dataSource
=
objsPtr
->
feature_objects
[
i
].
data_source
;
// RCLCPP_INFO(this->get_logger(),"frameNum = %d, obj pos = [%f,%f,%f],
// label = %d,orient.y = %f, dim = [%f,%f,%f],dataSource = %d",
// frameNum,pos.x,pos.y,pos.z,
// RCLCPP_INFO(this->get_logger(),"frameNum = %d, obj pos = [%f,%f,%f],cof = %f,label = %d,orient.y = %f, dim = [%f,%f,%f],dataSource = %d",
// frameNum,pos.x,pos.y,pos.z,prob,
// label,orient.y,dim.x,dim.y,dim.z,dataSource);
std
::
vector
<
float
>
data
;
data
.
push_back
(
label
);
...
...
@@ -335,7 +334,7 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
while
(
orient
.
y
<
-
_PI_
)
{
orient
.
y
+=
_PI_
*
2
;
}
in
t
cof
=
obj
.
existence_probability
;
floa
t
cof
=
obj
.
existence_probability
;
if
(
updateNum
!=
0
&&
updateNum
<=
m_tracking
.
m_update_invalid_num
)
//
obj
.
existence_probability
=
0.0
f
;
geometry_msgs
::
msg
::
Vector3
&
linear
=
...
...
@@ -413,7 +412,7 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
markerText
.
color
.
a
=
1.0
;
char
str
[
512
]
=
{};
sprintf
(
str
,
"%d:%.2f"
,
iter
.
first
,
linear
.
x
);
// sprintf(str, "%
d:%d"
,iter.first,obj.classification[0].label);
// sprintf(str, "%
.1f:%d:%d",cof
,iter.first,obj.classification[0].label);
// sprintf(str, "%.2f:%d:%.2f:%.2f",cof,obj.classification[0].label,poss.x,linear.x);
markerText
.
text
=
str
;
makerTextArray
.
markers
.
emplace_back
(
markerText
);
...
...
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