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
dc87d261
Commit
dc87d261
authored
May 26, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
03ef1f59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
TrackingRos2.cpp
ros2/TrackingRos2.cpp
+3
-5
TrackingRos2.h
ros2/TrackingRos2.h
+2
-0
No files found.
ros2/TrackingRos2.cpp
View file @
dc87d261
...
...
@@ -3,7 +3,6 @@
#include "Component.h"
#include <eigen3/Eigen/Dense>
#include <math.h>
#include <yaml-cpp/yaml.h>
#include "yaml_parser.h"
// #include "TransformPos.h"
#include <chrono>
...
...
@@ -27,22 +26,21 @@ namespace juefx_tracking {
//获取yaml文件
std
::
string
root_dir
=
this
->
declare_parameter
<
std
::
string
>
(
"root_dir"
,
std
::
string
(
""
));
int
run_mode
=
this
->
declare_parameter
<
int
>
(
"run_mode"
,
1
);
YAML
::
Node
config
;
if
(
run_mode
==
1
)
{
std
::
string
entry_yaml
=
this
->
declare_parameter
<
std
::
string
>
(
"entry_yaml"
,
std
::
string
(
""
));
QichechengYamlParser
parser
;
int
ret
=
parser
.
parse_yaml
(
entry_yaml
,
root_dir
);
if
(
ret
!=
0
)
return
;
config
=
parser
.
entry
[
"TRACKING_YAML_NODE"
];
m_
config
=
parser
.
entry
[
"TRACKING_YAML_NODE"
];
}
else
{
std
::
string
config_yaml
=
this
->
declare_parameter
<
std
::
string
>
(
"unittest_yaml"
,
std
::
string
(
""
));
config
=
YAML
::
LoadFile
(
config_yaml
);
m_
config
=
YAML
::
LoadFile
(
config_yaml
);
}
m_tracking
.
Init
(
root_dir
,
config
,[
=
](
objTrackListPtr
objsPtr
){
m_tracking
.
Init
(
root_dir
,
m_
config
,[
=
](
objTrackListPtr
objsPtr
){
TrackingPorcess
(
objsPtr
);
});
}
...
...
ros2/TrackingRos2.h
View file @
dc87d261
...
...
@@ -5,6 +5,7 @@
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <yaml-cpp/yaml.h>
#include "tier4_perception_msgs/msg/detected_objects_with_feature.hpp"
#include "tier4_perception_msgs/msg/detected_object_with_feature.hpp"
...
...
@@ -40,6 +41,7 @@ class TrackingRos2 : public rclcpp::Node {
TrackingObj
m_tracking
;
YAML
::
Node
m_config
;
};
}
// namespace juefx_tracking
...
...
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