Skip to content

Commit 5290e30

Browse files
committed
add debug/pose_with_covariance
Signed-off-by: Yamato Ando <yamato.ando@tier4.jp>
1 parent a3d0e41 commit 5290e30

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

localization/landmark_based_localizer/lidar_marker_localizer/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
| Name | Type | Description |
2020
| :------------------------------ | :---------------------------------------------- | :----------------------------------------------------------------- |
2121
| `~/output/pose_with_covariance` | `geometry_msgs::msg::PoseWithCovarianceStamped` | Estimated Pose |
22+
| `~/debug/pose_with_covariance` | `geometry_msgs::msg::PoseWithCovarianceStamped` | [debug topic] Estimated Pose |
2223
| `~/debug/result` | `sensor_msgs::msg::Image` | [debug topic] |
2324
| `~/debug/marker` | `visualization_msgs::msg::MarkerArray` | [debug topic] Loaded landmarks to visualize in Rviz as thin boards |
2425
| `/diagnostics` | `diagnostic_msgs::msg::DiagnosticArray` | Diagnostics outputs |

localization/landmark_based_localizer/lidar_marker_localizer/src/lidar_marker_localizer.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ LidarMarkerLocalizer::LidarMarkerLocalizer()
9090
qos_marker.reliable();
9191
pub_marker_mapped_ = this->create_publisher<MarkerArray>("~/debug/marker_mapped", qos_marker);
9292
pub_marker_detected_ = this->create_publisher<PoseArray>("~/debug/marker_detected", 10);
93+
pub_debug_pose_with_covariance_ = this->create_publisher<PoseWithCovarianceStamped>("~/debug/pose_with_covariance", 10);
9394

9495
service_trigger_node_ = this->create_service<SetBool>(
9596
"~/service/trigger_node_srv",
@@ -284,6 +285,7 @@ void LidarMarkerLocalizer::main_process(const PointCloud2::ConstSharedPtr & poin
284285
result.pose.covariance = rotate_covariance(param_.base_covariance, map_to_base_link_rotation);
285286

286287
pub_base_link_pose_with_covariance_on_map_->publish(result);
288+
pub_debug_pose_with_covariance_->publish(result);
287289
}
288290

289291
void LidarMarkerLocalizer::service_trigger_node(

localization/landmark_based_localizer/lidar_marker_localizer/src/lidar_marker_localizer.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ class LidarMarkerLocalizer : public rclcpp::Node
112112
rclcpp::Service<SetBool>::SharedPtr service_trigger_node_;
113113
rclcpp::Publisher<MarkerArray>::SharedPtr pub_marker_mapped_;
114114
rclcpp::Publisher<PoseArray>::SharedPtr pub_marker_detected_;
115+
rclcpp::Publisher<PoseWithCovarianceStamped>::SharedPtr pub_debug_pose_with_covariance_;
115116

116117
std::shared_ptr<DiagnosticsModule> diagnostics_module_;
117118

0 commit comments

Comments
 (0)