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
d033974e
Commit
d033974e
authored
Dec 06, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
22eafa62
Pipeline
#852
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
jfx_tracking.cpp
jfx_tracking.cpp
+10
-10
No files found.
jfx_tracking.cpp
View file @
d033974e
#include <ros/ros.h>
#
include
<
ros
/
ros
.
h
>
//#include "image_synchronizer.h"
//#include <yaml-cpp/yaml.h>
...
...
@@ -18,19 +18,19 @@ int main(int argc, char*argv[]) {
ros
::
NodeHandle
nh
(
"~"
);
BaseTracker
<
Track3D
>
tracker3d
;
BaseTracker
<
Track2D
>
tracker2d
;
//
BaseTracker<Track3D> tracker3d;
//
BaseTracker<Track2D> tracker2d;
std
::
map
<
uint64_t
,
std
::
shared_ptr
<
Track3D
>
>&
a
=
tracker3d
.
GetStates
();
std
::
map
<
uint64_t
,
std
::
shared_ptr
<
Track2D
>
>&
b
=
tracker2d
.
GetStates
();
//
std::map<uint64_t, std::shared_ptr<Track3D> >& a = tracker3d.GetStates();
//
std::map<uint64_t, std::shared_ptr<Track2D> >& b = tracker2d.GetStates();
//std::vector<float> truth_poses{ -0.4875, -0.798913, -1.125, 0, 0, -1.27409, 0.240477, 0.235315, 0.375 };
std
::
vector
<
float
>
truth_poses
{
-
0.1875
,
-
0.798913
,
-
1.0
,
0
,
0
,
-
1.27409
,
0.240477
,
0.235315
,
0.375
};
//std::vector<float> landmark_poses{ -0.506616, -0.796303, -1.20499, 0, 0, -0.345443, 0.22, 0.22, 0.4 };
std
::
vector
<
float
>
landmark_poses
{
-
0.4875
,
-
0.798913
,
-
1.125
,
0
,
0
,
-
1.27409
,
0.240477
,
0.47063
,
0.375
};
double
iou_3d
=
CuboidIoU
(
truth_poses
,
landmark_poses
);
std
::
cout
<<
"the iou of two cuboid is: "
<<
iou_3d
<<
std
::
endl
;
//
std::vector<float> truth_poses{ -0.1875, -0.798913, -1.0, 0, 0, -1.27409, 0.240477, 0.235315, 0.375 };
//
//
std::vector<float> landmark_poses{ -0.506616, -0.796303, -1.20499, 0, 0, -0.345443, 0.22, 0.22, 0.4 };
//
std::vector<float> landmark_poses{ -0.4875, -0.798913, -1.125, 0, 0, -1.27409, 0.240477, 0.47063, 0.375 };
//
double iou_3d = CuboidIoU(truth_poses, landmark_poses);
//
std::cout<<"the iou of two cuboid is: "<< iou_3d << std::endl;
//std::string config_yaml = "/data/catkin_ws_xishan/src/rosrv2x/jfx_rvconfig/param/vision_config.yaml";
//nh.param<std::string>("vision_config_path", config_yaml, "");
...
...
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