test
src
crashes_under_gprof.cpp
Go to the documentation of this file.
1
#include <
ros/ros.h
>
2
3
int
main
(
int
argc,
char
**argv)
4
{
5
ros::init
(argc, argv,
"test_get_param"
);
6
7
ros::NodeHandle
nh;
8
nh.
setParam
(std::string(
"monkey"
),
false
);
9
bool
test_bool;
10
while
(
ros::ok
()) {
11
if
(!nh.
getParam
(
"monkey"
, test_bool)) {
12
ROS_INFO_STREAM
(
"Failed, bailing"
);
13
ros::shutdown
();
14
}
15
std::cout <<
"."
;
16
}
17
return
0;
18
}
ros::NodeHandle::setParam
void setParam(const std::string &key, bool b) const
ros::init
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ros::NodeHandle::getParam
bool getParam(const std::string &key, bool &b) const
ros.h
ros::shutdown
ROSCPP_DECL void shutdown()
ros::ok
ROSCPP_DECL bool ok()
ROS_INFO_STREAM
#define ROS_INFO_STREAM(args)
main
int main(int argc, char **argv)
Definition:
crashes_under_gprof.cpp:3
ros::NodeHandle
test_roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:57