21 int main(
int argc,
char** argv)
28 if (nh.
getParam(
"stack_size_to_use", stack_size))
30 ROS_INFO(
"Node using stack size %i", (
int)stack_size);
31 const rlim_t max_stack_size = stack_size;
32 struct rlimit stack_limit;
33 getrlimit(RLIMIT_STACK, &stack_limit);
34 if (stack_limit.rlim_cur < stack_size)
36 stack_limit.rlim_cur = stack_size;
38 setrlimit(RLIMIT_STACK, &stack_limit);
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool getParam(const std::string &key, std::string &s) const
ROSCPP_DECL void spinOnce()