Main Page
Namespaces
Classes
Files
File List
File Members
src
localization_node.cpp
Go to the documentation of this file.
1
// SVN $HeadURL$
2
// SVN $Id$
3
4
/*
5
* 6D localization for humanoid robots
6
*
7
* Copyright 2009-2012 Armin Hornung, University of Freiburg
8
* http://www.ros.org/wiki/humanoid_localization
9
*
10
*
11
* This program is free software: you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation, version 3.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
*/
23
24
#include <
ros/ros.h
>
25
#include <
humanoid_localization/HumanoidLocalization.h
>
26
27
int
main
(
int
argc,
char
** argv){
28
ros::init
(argc, argv,
"humanoid_localization"
);
29
30
ros::NodeHandle
private_nh(
"~"
);
31
unsigned
seed;
32
int
iseed;
33
private_nh.
param
(
"seed"
, iseed, -1);
34
if
(iseed == -1)
35
seed =
static_cast<
unsigned
int
>
(std::time(0));
36
else
37
seed =
static_cast<
unsigned
int
>
(iseed);
38
39
humanoid_localization::HumanoidLocalization
localization(seed);
40
41
ros::spin
();
42
43
return
0;
44
}
ros::NodeHandle
main
int main(int argc, char **argv)
Definition:
localization_node.cpp:27
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ros::spin
ROSCPP_DECL void spin(Spinner &spinner)
ros::NodeHandle::param
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
HumanoidLocalization.h
ros.h
humanoid_localization::HumanoidLocalization
Definition:
HumanoidLocalization.h:82
humanoid_localization
Author(s): Armin Hornung, Stefan Osswald, Daniel Maier
autogenerated on Mon Jun 10 2019 13:38:31