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
7dcdecb8
Commit
7dcdecb8
authored
May 26, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
dc87d261
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
TrackingRos2.cpp
ros2/TrackingRos2.cpp
+4
-0
No files found.
ros2/TrackingRos2.cpp
View file @
7dcdecb8
...
...
@@ -26,13 +26,16 @@ 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
);
RCLCPP_INFO
(
this
->
get_logger
(),
"root_dir = %s,run_mode = %d"
,
root_dir
.
c_str
(),
run_mode
);
if
(
run_mode
==
1
)
{
std
::
string
entry_yaml
=
this
->
declare_parameter
<
std
::
string
>
(
"entry_yaml"
,
std
::
string
(
""
));
RCLCPP_INFO
(
this
->
get_logger
(),
"entry_yaml = %s"
,
entry_yaml
.
c_str
());
QichechengYamlParser
parser
;
int
ret
=
parser
.
parse_yaml
(
entry_yaml
,
root_dir
);
if
(
ret
!=
0
)
return
;
m_config
=
parser
.
entry
[
"TRACKING_YAML_NODE"
];
RCLCPP_INFO
(
this
->
get_logger
(),
"entry_yaml finish"
);
}
else
{
...
...
@@ -43,6 +46,7 @@ namespace juefx_tracking {
m_tracking
.
Init
(
root_dir
,
m_config
,[
=
](
objTrackListPtr
objsPtr
){
TrackingPorcess
(
objsPtr
);
});
RCLCPP_INFO
(
this
->
get_logger
(),
"load yaml finish"
);
}
TrackingRos2
::~
TrackingRos2
()
{}
...
...
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