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
aa6be703
Commit
aa6be703
authored
4 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Plain Diff
Merge branch 'development' into 'master'
Development See merge request
!1
parents
93c22482
e7e7843e
No related branches found
No related tags found
1 merge request
!1
Development
Pipeline
#6452
passed
4 years ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/opendrive_object.h
+1
-0
1 addition, 0 deletions
include/opendrive_object.h
src/opendrive_object.cpp
+8
-0
8 additions, 0 deletions
src/opendrive_object.cpp
src/opendrive_road_segment.cpp
+2
-2
2 additions, 2 deletions
src/opendrive_road_segment.cpp
with
11 additions
and
2 deletions
include/opendrive_object.h
+
1
−
0
View file @
aa6be703
...
@@ -68,6 +68,7 @@ class COpendriveObject
...
@@ -68,6 +68,7 @@ class COpendriveObject
bool
is_box
(
void
)
const
;
bool
is_box
(
void
)
const
;
bool
is_cylinder
(
void
)
const
;
bool
is_cylinder
(
void
)
const
;
bool
is_polygon
(
void
)
const
;
bool
is_polygon
(
void
)
const
;
bool
is_parking_space
(
void
)
const
;
TOpendriveBox
get_box_data
(
void
)
const
;
TOpendriveBox
get_box_data
(
void
)
const
;
TOpendriveCylinder
get_cylinder_data
(
void
)
const
;
TOpendriveCylinder
get_cylinder_data
(
void
)
const
;
TOpendrivePolygon
get_polygon_data
(
void
)
const
;
TOpendrivePolygon
get_polygon_data
(
void
)
const
;
...
...
This diff is collapsed.
Click to expand it.
src/opendrive_object.cpp
+
8
−
0
View file @
aa6be703
...
@@ -187,6 +187,14 @@ bool COpendriveObject::is_polygon(void) const
...
@@ -187,6 +187,14 @@ bool COpendriveObject::is_polygon(void) const
return
false
;
return
false
;
}
}
bool
COpendriveObject
::
is_parking_space
(
void
)
const
{
if
(
this
->
type
==
"parkingSpace"
)
return
true
;
else
return
false
;
}
TOpendriveBox
COpendriveObject
::
get_box_data
(
void
)
const
TOpendriveBox
COpendriveObject
::
get_box_data
(
void
)
const
{
{
TOpendriveBox
data
;
TOpendriveBox
data
;
...
...
This diff is collapsed.
Click to expand it.
src/opendrive_road_segment.cpp
+
2
−
2
View file @
aa6be703
...
@@ -853,7 +853,7 @@ std::vector<const COpendriveRoadSegment *> COpendriveRoadSegment::get_prev_segme
...
@@ -853,7 +853,7 @@ std::vector<const COpendriveRoadSegment *> COpendriveRoadSegment::get_prev_segme
for
(
unsigned
int
i
=
1
;
i
<=
this
->
get_num_right_lanes
();
i
++
)
for
(
unsigned
int
i
=
1
;
i
<=
this
->
get_num_right_lanes
();
i
++
)
{
{
const
COpendriveLane
&
lane
=
this
->
get_lane
(
-
i
);
const
COpendriveLane
&
lane
=
this
->
get_lane
(
-
i
);
for
(
unsigned
int
j
=
0
;
j
<
lane
.
get_num_
next
_lanes
();
j
++
)
for
(
unsigned
int
j
=
0
;
j
<
lane
.
get_num_
prev
_lanes
();
j
++
)
{
{
already_present
=
false
;
already_present
=
false
;
for
(
unsigned
int
k
=
0
;
k
<
segment_candidates
.
size
();
k
++
)
for
(
unsigned
int
k
=
0
;
k
<
segment_candidates
.
size
();
k
++
)
...
@@ -875,7 +875,7 @@ std::vector<const COpendriveRoadSegment *> COpendriveRoadSegment::get_prev_segme
...
@@ -875,7 +875,7 @@ std::vector<const COpendriveRoadSegment *> COpendriveRoadSegment::get_prev_segme
for
(
unsigned
int
i
=
1
;
i
<=
this
->
get_num_left_lanes
();
i
++
)
for
(
unsigned
int
i
=
1
;
i
<=
this
->
get_num_left_lanes
();
i
++
)
{
{
const
COpendriveLane
&
lane
=
this
->
get_lane
(
i
);
const
COpendriveLane
&
lane
=
this
->
get_lane
(
i
);
for
(
unsigned
int
j
=
0
;
j
<
lane
.
get_num_
next
_lanes
();
j
++
)
for
(
unsigned
int
j
=
0
;
j
<
lane
.
get_num_
prev
_lanes
();
j
++
)
{
{
already_present
=
false
;
already_present
=
false
;
for
(
unsigned
int
k
=
0
;
k
<
segment_candidates
.
size
();
k
++
)
for
(
unsigned
int
k
=
0
;
k
<
segment_candidates
.
size
();
k
++
)
...
...
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