Swarm-SLAM  1.0.0
C-SLAM Framework
pose_graph_manager_node.cpp
Go to the documentation of this file.
2 
3 using namespace cslam;
4 
12 int main(int argc, char **argv) {
13 
14  rclcpp::init(argc, argv);
15 
16  auto node = std::make_shared<rclcpp::Node>("pose_graph_manager");
17 
18  node->declare_parameter<int>("max_nb_robots", 1);
19  node->declare_parameter<int>("robot_id", 0);
20  node->declare_parameter<int>("backend.pose_graph_optimization_start_period_ms", 1000);
21  node->declare_parameter<int>("backend.pose_graph_optimization_loop_period_ms", 100);
22  node->declare_parameter<int>("backend.max_waiting_time_sec", 100);
23  node->declare_parameter<bool>("backend.enable_broadcast_tf_frames", true);
24  node->declare_parameter<double>("neighbor_management.heartbeat_period_sec", 1.0);
25  node->declare_parameter<bool>("evaluation.enable_logs", false);
26  node->declare_parameter<std::string>("evaluation.log_folder", "");
27  node->declare_parameter<bool>("evaluation.enable_gps_recording", false);
28  node->declare_parameter<bool>("evaluation.enable_simulated_rendezvous", false);
29  node->declare_parameter<std::string>("evaluation.rendezvous_schedule_file", "");
30  node->declare_parameter<bool>("evaluation.enable_pose_timestamps_recording", false);
31  node->declare_parameter<bool>("visualization.enable", false);
32  node->declare_parameter<int>("visualization.publishing_period_ms", 0);
33 
34  DecentralizedPGO manager(node);
35 
36  rclcpp::spin(node);
37 
38  rclcpp::shutdown();
39 
40  return 0;
41 }
Definition: __init__.py:1
int main(int argc, char **argv)
Node to manage the pose graph data.