Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
opendrive_to_gazebo
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
ADC
libraries
opendrive_to_gazebo
Commits
166204d6
Commit
166204d6
authored
4 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Changed the Point name to Pose.
parent
d7c4aef8
No related branches found
No related tags found
1 merge request
!1
Opendrive lib
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/generate_launch.cpp
+7
-7
7 additions, 7 deletions
src/generate_launch.cpp
with
7 additions
and
7 deletions
src/generate_launch.cpp
+
7
−
7
View file @
166204d6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
std
::
string
get_full_name
(
std
::
string
&
path
,
std
::
string
&
file_name
,
const
std
::
string
&
ext
)
std
::
string
get_full_name
(
std
::
string
&
path
,
std
::
string
&
file_name
,
const
std
::
string
&
ext
)
{
{
std
::
size_t
slash_index
,
po
int
_index
;
std
::
size_t
slash_index
,
po
se
_index
;
std
::
string
full_name
;
std
::
string
full_name
;
// add the last slash if missing
// add the last slash if missing
...
@@ -12,13 +12,13 @@ std::string get_full_name(std::string &path,std::string &file_name,const std::st
...
@@ -12,13 +12,13 @@ std::string get_full_name(std::string &path,std::string &file_name,const std::st
if
(
slash_index
!=
path
.
size
()
-
1
)
if
(
slash_index
!=
path
.
size
()
-
1
)
path
+=
"/"
;
path
+=
"/"
;
// check the file extension
// check the file extension
po
int
_index
=
file_name
.
find_last_of
(
"."
);
po
se
_index
=
file_name
.
find_last_of
(
"."
);
if
(
po
int
_index
==
std
::
string
::
npos
)
// extension missing
if
(
po
se
_index
==
std
::
string
::
npos
)
// extension missing
file_name
+=
"."
+
ext
;
file_name
+=
"."
+
ext
;
else
else
{
{
po
int
_index
=
file_name
.
find_last_of
(
"."
+
ext
);
po
se
_index
=
file_name
.
find_last_of
(
"."
+
ext
);
if
(
po
int
_index
==
std
::
string
::
npos
)
// invalid extension
if
(
po
se
_index
==
std
::
string
::
npos
)
// invalid extension
throw
CException
(
_HERE_
,
"Invalid file extension. It must be "
+
ext
);
throw
CException
(
_HERE_
,
"Invalid file extension. It must be "
+
ext
);
}
}
full_name
=
path
+
file_name
;
full_name
=
path
+
file_name
;
...
@@ -115,7 +115,7 @@ void generate_signals_launch(std::string &path,std::string &signals_file,COpendr
...
@@ -115,7 +115,7 @@ void generate_signals_launch(std::string &path,std::string &signals_file,COpendr
{
{
std
::
ofstream
out_file
;
std
::
ofstream
out_file
;
std
::
string
full_name
,
type
,
subtype
,
name
,
marker
;
std
::
string
full_name
,
type
,
subtype
,
name
,
marker
;
TOpendriveWorldPo
int
world
;
TOpendriveWorldPo
se
world
;
full_name
=
get_full_name
(
path
,
signals_file
,
"launch"
);
full_name
=
get_full_name
(
path
,
signals_file
,
"launch"
);
// process the road
// process the road
...
@@ -161,7 +161,7 @@ void generate_objects_launch(std::string &path,std::string &objects_file,COpendr
...
@@ -161,7 +161,7 @@ void generate_objects_launch(std::string &path,std::string &objects_file,COpendr
{
{
std
::
ofstream
out_file
;
std
::
ofstream
out_file
;
std
::
string
full_name
,
type
,
subtype
,
name
,
marker
;
std
::
string
full_name
,
type
,
subtype
,
name
,
marker
;
TOpendriveWorldPo
int
world
;
TOpendriveWorldPo
se
world
;
full_name
=
get_full_name
(
path
,
objects_file
,
"launch"
);
full_name
=
get_full_name
(
path
,
objects_file
,
"launch"
);
// process the road
// process the road
...
...
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