Skip to content

Commit

Permalink
fix: fix pedestrian shape (autowarefoundation#760) (autowarefoundatio…
Browse files Browse the repository at this point in the history
…n#132)

Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>

Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
  • Loading branch information
wep21 and yukkysaito authored Dec 7, 2021
1 parent 6cd7328 commit 81a52c6
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,15 @@ bool PedestrianTracker::getTrackedObject(
P(IDX::WZ, IDX::WZ);

// set shape
object.shape.dimensions.x = bounding_box_.width;
object.shape.dimensions.y = bounding_box_.length;
object.shape.dimensions.z = bounding_box_.height;
if (object.shape.type == autoware_auto_perception_msgs::msg::Shape::BOUNDING_BOX) {
object.shape.dimensions.x = bounding_box_.width;
object.shape.dimensions.y = bounding_box_.length;
object.shape.dimensions.z = bounding_box_.height;
} else if (object.shape.type == autoware_auto_perception_msgs::msg::Shape::CYLINDER) {
object.shape.dimensions.x = cylinder_.width;
object.shape.dimensions.y = cylinder_.width;
object.shape.dimensions.z = cylinder_.height;
}

return true;
}

0 comments on commit 81a52c6

Please sign in to comment.