Commit f8bf38a7 authored by oscar's avatar oscar

update frame_id

parent 15c26ddb
......@@ -296,7 +296,7 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
visualization_msgs::msg::Marker marker = {};
// marker.header = objsPtr->header;
marker.lifetime = rclcpp::Duration(1);
marker.header.frame_id = "/rslidar";
marker.header.frame_id = "top_lidar";
marker.type = visualization_msgs::msg::Marker::CUBE;
marker.action = visualization_msgs::msg::Marker::ADD;
marker.id = iter.first;
......@@ -371,7 +371,7 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
for (int i = 0; i < lostId.size(); i++) {
visualization_msgs::msg::Marker marker = {};
marker.lifetime = rclcpp::Duration(1);
marker.header.frame_id = "/rslidar";
marker.header.frame_id = "top_lidar";
marker.type = visualization_msgs::msg::Marker::CUBE;
marker.action = visualization_msgs::msg::Marker::DELETE;
marker.id = lostId[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment