slam_toolbox_lifelong_node.cpp
Go to the documentation of this file.
1 /*
2  * slam_toolbox
3  * Copyright (c) 2019, Samsung Research America
4  *
5  * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
6  * COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
7  * COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
8  * AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
9  *
10  * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO
11  * BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS
12  * CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
13  * CONDITIONS.
14  *
15  */
16 
17 /* Author: Steven Macenski */
18 
20 
21 int main(int argc, char** argv)
22 {
23  ros::init(argc, argv, "slam_toolbox");
24  ros::NodeHandle nh("~");
25  ros::spinOnce();
26 
27  int stack_size;
28  if (nh.getParam("stack_size_to_use", stack_size))
29  {
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)
35  {
36  stack_limit.rlim_cur = stack_size;
37  }
38  setrlimit(RLIMIT_STACK, &stack_limit);
39  }
40 
42 
43  ros::spin();
44  return 0;
45 }
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
main
int main(int argc, char **argv)
Definition: slam_toolbox_lifelong_node.cpp:21
ros::spinOnce
ROSCPP_DECL void spinOnce()
slam_toolbox::LifelongSlamToolbox
Definition: slam_toolbox_lifelong.hpp:29
ros::spin
ROSCPP_DECL void spin()
slam_toolbox_lifelong.hpp
ROS_INFO
#define ROS_INFO(...)
ros::NodeHandle


slam_toolbox
Author(s): Steve Macenski
autogenerated on Thu Jan 11 2024 03:37:56