Commit 8f67081e authored by haoshuang's avatar haoshuang

update frame id of ros2

parent b41fc456
......@@ -98,7 +98,7 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
wit_perception_msgs::msg::TrackedObjectsEx sendObjsEx = {};
autoware_auto_perception_msgs::msg::TrackedObjects sendObjs = {};
sendObjs.header = objsPtr->header;
sendObjs.header.frame_id = "top_lidar";
sendObjs.header.frame_id = "rslidar";
uint64_t timestamp = (unsigned long long)objsPtr->header.stamp.sec * 1e6 +
(unsigned long long)objsPtr->header.stamp.nanosec * 1e-3;
static int frameNum = 0;
......@@ -408,7 +408,7 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
visualization_msgs::msg::Marker marker = {};
// marker.header = objsPtr->header;
marker.lifetime = rclcpp::Duration(1);
marker.header.frame_id = "top_lidar";
marker.header.frame_id = "rslidar";
marker.type = visualization_msgs::msg::Marker::CUBE;
marker.action = visualization_msgs::msg::Marker::ADD;
marker.id = iter.first;
......@@ -434,7 +434,7 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
visualization_msgs::msg::Marker markerText = {};
markerText.lifetime = rclcpp::Duration(1);
markerText.header.frame_id = "top_lidar";
markerText.header.frame_id = "rslidar";
markerText.type = visualization_msgs::msg::Marker::TEXT_VIEW_FACING;
markerText.action = visualization_msgs::msg::Marker::ADD;
markerText.id = iter.first;
......@@ -543,7 +543,7 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
}
visualization_msgs::msg::Marker marker = {};
marker.lifetime = rclcpp::Duration(1);
marker.header.frame_id = "top_lidar";
marker.header.frame_id = "rslidar";
marker.type = visualization_msgs::msg::Marker::CUBE;
marker.action = visualization_msgs::msg::Marker::DELETE;
marker.id = lostId[i];
......@@ -564,7 +564,7 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
makerArray.markers.emplace_back(marker);
visualization_msgs::msg::Marker markerText = {};
markerText.lifetime = rclcpp::Duration(1);
markerText.header.frame_id = "top_lidar";
markerText.header.frame_id = "rslidar";
markerText.type = visualization_msgs::msg::Marker::TEXT_VIEW_FACING;
markerText.action = visualization_msgs::msg::Marker::DELETE;
markerText.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