MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / Publisher

Method Publisher

pose_graph/src/pose_graph/Publisher.cpp:24–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "utils/Utils.h"
23
24Publisher::Publisher(std::shared_ptr<rclcpp::Node> node, bool debug_mode) : node_(node), debug_mode_(debug_mode) {
25 // Publishers
26 // pub_matched_points_ = node_->create_publisher<sensor_msgs::msg::PointCloud>("match_points", 100);
27 pub_gloal_map_ = node_->create_publisher<sensor_msgs::msg::PointCloud2>("global_map", 2);
28
29 pub_robust_path_ = node_->create_publisher<nav_msgs::msg::Path>("uber_path", 2);
30 pub_robust_odometry_ = node_->create_publisher<nav_msgs::msg::Odometry>("uber_odometry", 2);
31
32 if (debug_mode_) {
33 pub_primitive_estimator_path_ = node_->create_publisher<nav_msgs::msg::Path>("primitive_estimator_path", 2);
34 pub_primitive_odometry_ = node_->create_publisher<nav_msgs::msg::Odometry>("prim_odometry", 2);
35 }
36
37 pub_loop_closure_path_ = node_->create_publisher<nav_msgs::msg::Path>("loop_closure_path", 100);
38 // pub_kf_connections_ = nh.advertise<visualization_msgs::msg::MarkerArray>("kf_connections", 1000);
39
40 camera_pose_visualizer_ = std::make_unique<CameraPoseVisualization>(1.0, 0.0, 0.0, 1.0);
41 camera_pose_visualizer_->setScale(0.4);
42 camera_pose_visualizer_->setLineWidth(0.04);
43 pub_visualization_ = node_->create_publisher<visualization_msgs::msg::MarkerArray>("visualization", 100);
44}
45
46// void Publisher::kfMatchedPointCloudCallback(const sensor_msgs::msg::PointCloud& msg) {
47// pub_matched_points_->publish(msg);

Callers 1

__init__Method · 0.45

Calls 2

setScaleMethod · 0.80
setLineWidthMethod · 0.80

Tested by

no test coverage detected