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
20d6377e
Commit
20d6377e
authored
Apr 11, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交地图接口代码
parent
2e6fd105
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 @
20d6377e
This diff is collapsed.
Click to expand it.
src/MapLocation.h
View file @
20d6377e
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
#include "MapLocationBase.h"
#include "MapLocationBase.h"
#include "HdLib.h"
#include "HdLib.h"
#include "MapMatching.hpp"
#include "MapMatching.hpp"
#include <thread>
#include <mutex>
namespace
JfxLocation
namespace
JfxLocation
{
{
...
@@ -10,6 +12,7 @@ namespace JfxLocation
...
@@ -10,6 +12,7 @@ namespace JfxLocation
{
{
public
:
public
:
MapLocation
(
const
std
::
string
&
project
,
const
std
::
string
&
config
);
MapLocation
(
const
std
::
string
&
project
,
const
std
::
string
&
config
);
~
MapLocation
();
virtual
int
SetMatchingResultCallback
(
MatchingResultCallback
cb
);
virtual
int
SetMatchingResultCallback
(
MatchingResultCallback
cb
);
virtual
int
PushGPSFrame
(
GPSFrame
&
gps
);
virtual
int
PushGPSFrame
(
GPSFrame
&
gps
);
...
@@ -17,8 +20,15 @@ namespace JfxLocation
...
@@ -17,8 +20,15 @@ namespace JfxLocation
virtual
int
PushLocation
(
Location
&
loc
);
virtual
int
PushLocation
(
Location
&
loc
);
public
:
public
:
void
ThreadProcess
();
jf
::
MapMatching
m_mmMatch
;
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