Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
map_location
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
map_location
Commits
2f27b72f
Commit
2f27b72f
authored
Apr 11, 2022
by
muyusheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
2cb8e9e2
ae3f1dd2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
MapLocation.cpp
src/MapLocation.cpp
+0
-0
MapLocation.h
src/MapLocation.h
+10
-0
No files found.
src/MapLocation.cpp
View file @
2f27b72f
This diff is collapsed.
Click to expand it.
src/MapLocation.h
View file @
2f27b72f
...
...
@@ -3,6 +3,8 @@
#include "MapLocationBase.h"
#include "HdLib.h"
#include "MapMatching.hpp"
#include <thread>
#include <mutex>
namespace
JfxLocation
{
...
...
@@ -10,6 +12,7 @@ namespace JfxLocation
{
public
:
MapLocation
(
const
std
::
string
&
project
,
const
std
::
string
&
config
);
~
MapLocation
();
virtual
int
SetMatchingResultCallback
(
MatchingResultCallback
cb
);
virtual
int
PushGPSFrame
(
GPSFrame
&
gps
);
...
...
@@ -17,8 +20,15 @@ namespace JfxLocation
virtual
int
PushLocation
(
Location
&
loc
);
public
:
void
ThreadProcess
();
jf
::
MapMatching
m_mmMatch
;
bool
m_isRun
=
false
;
//记录是否在运行
std
::
thread
m_thread
;
//运行线程
std
::
mutex
m_mtx
;
MatchingResultCallback
m_cb
=
nullptr
;
};
}
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