Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autonomous_driving_tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
autonomous_driving
autonomous_driving_tools
Commits
1bf1ba61
Commit
1bf1ba61
authored
1 year ago
by
Fernando Herrero
Browse files
Options
Downloads
Patches
Plain Diff
Add set/get_utm_zone functions
parent
98223daa
No related branches found
No related tags found
No related merge requests found
Pipeline
#17228
failed
1 year ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/road_map.h
+3
-0
3 additions, 0 deletions
include/road_map.h
src/road_map.cpp
+12
-0
12 additions, 0 deletions
src/road_map.cpp
with
15 additions
and
0 deletions
include/road_map.h
+
3
−
0
View file @
1bf1ba61
...
...
@@ -36,6 +36,7 @@ class CRoadMap
std
::
vector
<
CRoad
*>
roads
;
std
::
vector
<
CJunction
*>
junctions
;
double
resolution
;
int
utm_zone
;
protected:
void
free
(
void
);
unsigned
get_next_segment_id
(
void
);
...
...
@@ -55,6 +56,8 @@ class CRoadMap
void
load_osm
(
const
std
::
string
&
filename
);
void
set_resolution
(
double
resolution
);
double
get_resolution
(
void
);
void
set_utm_zone
(
int
zone
);
int
get_utm_zone
(
void
);
std
::
vector
<
unsigned
int
>
get_path_sub_roadmap
(
std
::
vector
<
unsigned
int
>
&
segment_ids
,
CRoadMap
&
new_road_map
);
double
get_path_length
(
std
::
vector
<
unsigned
int
>
&
segment_ids
);
/* connectivity */
...
...
This diff is collapsed.
Click to expand it.
src/road_map.cpp
+
12
−
0
View file @
1bf1ba61
...
...
@@ -14,6 +14,7 @@
CRoadMap
::
CRoadMap
()
{
this
->
resolution
=
0.1
;
this
->
utm_zone
=
31
;
this
->
next_segment_id
=
0
;
this
->
next_road_id
=
0
;
this
->
next_junction_id
=
0
;
...
...
@@ -383,6 +384,7 @@ void CRoadMap::save_opendrive(const std::string &filename)
void
CRoadMap
::
load_osm
(
const
std
::
string
&
filename
)
{
COSMMap
road_map
;
road_map
.
set_utm_zone
(
this
->
utm_zone
);
this
->
free
();
road_map
.
load
(
filename
);
...
...
@@ -403,6 +405,16 @@ double CRoadMap::get_resolution(void)
return
this
->
resolution
;
}
void
CRoadMap
::
set_utm_zone
(
int
zone
)
{
this
->
utm_zone
=
zone
;
}
int
CRoadMap
::
get_utm_zone
(
void
)
{
return
this
->
utm_zone
;
}
std
::
vector
<
unsigned
int
>
CRoadMap
::
get_path_sub_roadmap
(
std
::
vector
<
unsigned
int
>
&
segment_ids
,
CRoadMap
&
new_road_map
)
{
std
::
map
<
CRoad
*
,
CRoad
*>
road_ref_update
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment