Skip to content

Commit

Permalink
Fix transform lookup order in cloud2TransformedCloud function
Browse files Browse the repository at this point in the history
  • Loading branch information
h-wata committed Feb 13, 2024
1 parent 2c82be9 commit dfbdb23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracker_with_cloud_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ TrackerWithCloudNode::cloud2TransformedCloud(const pcl::PointCloud<pcl::PointXYZ

try
{
geometry_msgs::TransformStamped tf = tf_buffer_->lookupTransform(source_frame, target_frame, stamp);
geometry_msgs::TransformStamped tf = tf_buffer_->lookupTransform(target_frame, source_frame, stamp);
pcl_ros::transformPointCloud(*cloud, *transformed_cloud, tf.transform);
}
catch (tf2::TransformException& e)
Expand Down

0 comments on commit dfbdb23

Please sign in to comment.