Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_road_description
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
ADC_2021
iri_road_description
Commits
8e86d686
Commit
8e86d686
authored
4 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Solved a bug with the script: The order of the parameters was not correct.
parent
9a39830b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
launch/spawn_road.launch
+1
-1
1 addition, 1 deletion
launch/spawn_road.launch
scripts/set_road.sh
+7
-3
7 additions, 3 deletions
scripts/set_road.sh
with
8 additions
and
4 deletions
launch/spawn_road.launch
+
1
−
1
View file @
8e86d686
...
...
@@ -25,7 +25,7 @@
args=
"-param road_description -urdf -model $(arg road_name) -x $(arg x) -y $(arg y) -z 0 -Y $(arg yaw)"
>
</node>
<node
name=
"$(arg road_name)_set_road"
pkg=
"road_description"
type=
"set_road.sh"
args=
"$(
find
road_
description)/urdf/roads/road
.png $(
arg
road_
path)/$(arg road_name)
.png"
/>
<node
name=
"$(arg road_name)_set_road"
pkg=
"road_description"
type=
"set_road.sh"
output=
"screen"
args=
"$(
arg
road_
path)/$(arg road_name)
.png $(
find
road_
description)/urdf/roads/road
.png"
/>
<node
name=
"static_tf_$(arg road_name)_base_link_to_$(arg parent)"
pkg=
"tf"
type=
"static_transform_publisher"
args=
"$(arg x) $(arg y) 0 $(arg yaw) 0 0 $(arg parent) $(arg road_name)_base_link 100"
>
...
...
This diff is collapsed.
Click to expand it.
scripts/set_road.sh
+
7
−
3
View file @
8e86d686
#!/bin/bash
if
[
-
f
"
$
1
"
]
;
then
rm
"
$
1
"
if
[
-
L
"
$
2
"
]
;
then
unlink
"
$
2
"
fi
ln
-s
$2
$1
if
[
-f
"
$1
"
]
;
then
ln
-s
$1
$2
else
echo
-e
"!!!!!!!!!!!!!!!!!!!!!!! The desired road image file does not exist"
fi
while
true
;
do
sleep
2
;
done
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