slam_toolbox_sync_node.cpp
Go to the documentation of this file.
1 /*
2  * slam_toolbox
3  * Copyright Work Modifications (c) 2018, Simbe Robotics, Inc.
4  * Copyright Work Modifications (c) 2019, Steve Macenski
5  *
6  * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
7  * COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
8  * COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
9  * AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
10  *
11  * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO
12  * BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS
13  * CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
14  * CONDITIONS.
15  *
16  */
17 
18 /* Author: Steven Macenski */
19 
21 
22 int main(int argc, char** argv)
23 {
24  ros::init(argc, argv, "slam_toolbox");
25  ros::NodeHandle nh("~");
26  ros::spinOnce();
27 
28  int stack_size;
29  if (nh.getParam("stack_size_to_use", stack_size))
30  {
31  ROS_INFO("Node using stack size %i", (int)stack_size);
32  const rlim_t max_stack_size = stack_size;
33  struct rlimit stack_limit;
34  getrlimit(RLIMIT_STACK, &stack_limit);
35  if (stack_limit.rlim_cur < stack_size)
36  {
37  stack_limit.rlim_cur = stack_size;
38  }
39  setrlimit(RLIMIT_STACK, &stack_limit);
40  }
41 
43 
44  ros::spin();
45  return 0;
46 }
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::spinOnce
ROSCPP_DECL void spinOnce()
slam_toolbox_sync.hpp
slam_toolbox::SynchronousSlamToolbox
Definition: slam_toolbox_sync.hpp:28
ros::spin
ROSCPP_DECL void spin()
main
int main(int argc, char **argv)
Definition: slam_toolbox_sync_node.cpp:22
ROS_INFO
#define ROS_INFO(...)
ros::NodeHandle


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