Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mobile_robotics
ADC
libraries
opendrive_to_gazebo
Commits
d22f1ff0
Commit
d22f1ff0
authored
Jun 23, 2021
by
Sergi Hernandez
Browse files
Changes to handle the sempahores.
parent
769a372a
Pipeline
#6613
passed with stages
in 1 minute and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/generate_launch.cpp
View file @
d22f1ff0
...
...
@@ -147,14 +147,21 @@ void generate_signals_launch(std::string &path,std::string &signals_file,COpendr
signal
.
get_type
(
type
,
subtype
);
get_signal_type_info
(
type
,
subtype
,
signal
.
get_value
(),
name
,
marker
);
out_file
<<
std
::
endl
;
out_file
<<
" <include file=
\"
$(find iri_sign_description)/launch/spawn_sign.launch
\"
>"
<<
std
::
endl
;
if
(
type
==
SEMAPHORE_TYPE
)
out_file
<<
" <include file=
\"
$(find iri_sign_description)/launch/spawn_semaphore.launch
\"
>"
<<
std
::
endl
;
else
out_file
<<
" <include file=
\"
$(find iri_sign_description)/launch/spawn_sign.launch
\"
>"
<<
std
::
endl
;
out_file
<<
" <arg name=
\"
name
\"
value=
\"
"
<<
name
<<
"_"
<<
signal
.
get_id
()
<<
"
\"
/>"
<<
std
::
endl
;
if
(
type
==
SEMAPHORE_TYPE
)
{
out_file
<<
" <arg name=
\"
model
\"
value=
\"
semaphore
\"
/>"
<<
std
::
endl
;
out_file
<<
" <arg name=
\"
initial_state
\"
value=
\"
True
\"
/>"
<<
std
::
endl
;
}
else
{
out_file
<<
" <arg name=
\"
model
\"
value=
\"
sign
\"
/>"
<<
std
::
endl
;
out_file
<<
" <arg name=
\"
t
ag
\"
value=
\"
"
<<
marker
<<
"
\"
/>"
<<
std
::
endl
;
out_file
<<
" <arg name=
\"
type
\"
value=
\"
"
<<
name
<<
"
\"
/>"
<<
std
::
endl
;
out_file
<<
" <arg name=
\"
t
ype
\"
value=
\"
"
<<
name
<<
"
\"
/>"
<<
std
::
endl
;
}
world
=
signal
.
get_world_pose
();
out_file
<<
" <arg name=
\"
x
\"
value=
\"
"
<<
world
.
x
<<
"
\"
/>"
<<
std
::
endl
;
out_file
<<
" <arg name=
\"
y
\"
value=
\"
"
<<
world
.
y
<<
"
\"
/>"
<<
std
::
endl
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment