Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CeTI
ROS
ROS Packages
gazebo-pkgs
Commits
65cb56f1
Commit
65cb56f1
authored
Feb 28, 2016
by
Jennifer Buehler
Browse files
small fix
parent
15cd0e29
Changes
1
Hide whitespace changes
Inline
Side-by-side
gazebo_test_tools/src/cube_spawner_node.cpp
View file @
65cb56f1
...
...
@@ -10,12 +10,10 @@ int main(int argc, char** argv) {
return
0
;
}
ros
::
NodeHandle
node
;
gazebo_test_tools
::
GazeboCubeSpawner
spawner
(
node
);
ROS_INFO
(
"Running spawn cube once.."
);
std
::
string
name
=
argv
[
1
];
float
x
=
0
;
...
...
@@ -27,9 +25,10 @@ int main(int argc, char** argv) {
if
(
argc
>
3
)
y
=
atof
(
argv
[
3
]);
if
(
argc
>
4
)
z
=
atof
(
argv
[
4
]);
if
(
argc
>
5
)
frame_id
=
argv
[
5
];
spawner
.
spawnCube
(
name
,
frame_id
,
x
,
y
,
z
,
0
,
0
,
0
,
1
);
float
dim
=
0.05
;
float
mass
=
0.05
;
spawner
.
spawnCube
(
name
,
frame_id
,
x
,
y
,
z
,
0
,
0
,
0
,
1
,
dim
,
dim
,
dim
,
mass
);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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