Skip to content

Commit

Permalink
fix: remove unused large variable/copy (#103)
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
  • Loading branch information
xmfcx authored Dec 5, 2023
1 parent a89c0a9 commit 16f2817
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nebula_ros/src/velodyne/velodyne_decoder_ros_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ void VelodyneDriverRosWrapper::ReceiveScanMsgCallback(
{
auto t_start = std::chrono::high_resolution_clock::now();

// take packets out of scan msg
std::vector<velodyne_msgs::msg::VelodynePacket> pkt_msgs = scan_msg->packets;

std::tuple<nebula::drivers::NebulaPointCloudPtr, double> pointcloud_ts =
driver_ptr_->ConvertScanToPointcloud(scan_msg);
nebula::drivers::NebulaPointCloudPtr pointcloud = std::get<0>(pointcloud_ts);
Expand Down

0 comments on commit 16f2817

Please sign in to comment.