Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_adc_jury
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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_adc_jury
Commits
d92961f1
Commit
d92961f1
authored
4 years ago
by
Fernando Herrero
Browse files
Options
Downloads
Patches
Plain Diff
Add goal type
parent
eb31d005
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/goals.yaml
+3
-0
3 additions, 0 deletions
config/goals.yaml
launch/test.launch
+3
-2
3 additions, 2 deletions
launch/test.launch
src/adc_jury_alg_node.cpp
+7
-5
7 additions, 5 deletions
src/adc_jury_alg_node.cpp
with
13 additions
and
7 deletions
config/goals.yaml
+
3
−
0
View file @
d92961f1
...
...
@@ -3,13 +3,16 @@ goals:
x
:
1.0
y
:
0.22
yaw
:
0.0
type
:
0
-
id
:
goal2
x
:
2.0
y
:
0.22
yaw
:
0.0
type
:
1
-
id
:
goal3
x
:
3.0
y
:
-0.22
yaw
:
3.14159
type
:
2
This diff is collapsed.
Click to expand it.
launch/test.launch
+
3
−
2
View file @
d92961f1
<?xml version="1.0" encoding="UTF-8"?>
<launch>
<arg
name=
"goals_file"
default=
"$(find iri_adc_jury)/config/goals.yaml"
/>
<arg
name=
"output"
default=
"screen"
/>
<arg
name=
"launch_prefix"
default=
""
/>
<arg
name=
"dr"
default=
"true"
/>
<rosparam
command=
"load"
file=
"$(
find iri_adc_jury)/config/goals.yaml
"
/>
<rosparam
command=
"load"
file=
"$(
arg goals_file)
"
/>
<include
file=
"$(find iri_adc_jury)/launch/node.launch"
>
<arg
name=
"node_name"
value=
"iri_adc_jury"
/>
...
...
This diff is collapsed.
Click to expand it.
src/adc_jury_alg_node.cpp
+
7
−
5
View file @
d92961f1
...
...
@@ -37,16 +37,18 @@ AdcJuryAlgNode::AdcJuryAlgNode(void) :
for
(
int
i
=
0
;
i
<
goals
.
size
();
i
++
)
{
XmlRpc
::
XmlRpcValue
goal
=
goals
[
i
];
std
::
string
id
=
goal
[
"id"
];
double
x
=
goal
[
"x"
];
double
y
=
goal
[
"y"
];
double
yaw
=
goal
[
"yaw"
];
ROS_INFO
(
"AdcJuryAlgNode: Goal #%d with id,x,y,yaw=(%s,%f,%f,%f)"
,
i
,
id
.
c_str
(),
x
,
y
,
yaw
);
std
::
string
id
=
goal
[
"id"
];
double
x
=
goal
[
"x"
];
double
y
=
goal
[
"y"
];
double
yaw
=
goal
[
"yaw"
];
int
type
=
goal
[
"type"
];
ROS_INFO
(
"AdcJuryAlgNode: Goal #%d with id,x,y,yaw,type=(%s,%f,%f,%f,%d)"
,
i
,
id
.
c_str
(),
x
,
y
,
yaw
,
type
);
iri_adc_msgs
::
adc_goal
g
;
g
.
id
=
id
;
g
.
x
=
x
;
g
.
y
=
y
;
g
.
yaw
=
yaw
;
g
.
type
=
type
;
adc_jury_goal_
.
goals
.
goals
.
push_back
(
g
);
}
}
...
...
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