Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Merge branch 'fix/empty_orientation_in_diffrent_coordinate' into 'mas…
Browse files Browse the repository at this point in the history
…ter'

Fix: empty orientatin when input's coordinate is other than `velodyne`.

See merge request autowarefoundation/autoware.ai/core_perception!14
  • Loading branch information
Geoffrey Biggs committed Jul 1, 2019
2 parents 976ee64 + 2658662 commit af19c21
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ static bool _pose_estimation;
static double _leaf_size;
static int _cluster_size_min;
static int _cluster_size_max;
static const double _initial_quat_w = 1.0;

static bool _remove_ground; // only ground

Expand Down Expand Up @@ -252,7 +253,10 @@ void publishCloudClusters(const ros::Publisher *in_publisher, const autoware_msg
{
cluster_transformed.bounding_box.pose.orientation = i->bounding_box.pose.orientation;
}

else
{
cluster_transformed.bounding_box.pose.orientation.w = _initial_quat_w;
}
clusters_transformed.clusters.push_back(cluster_transformed);
}
catch (tf::TransformException &ex)
Expand Down

0 comments on commit af19c21

Please sign in to comment.