Skip to content

Commit

Permalink
feat(dummy_perception_publisher): modify orientation availability of …
Browse files Browse the repository at this point in the history
…dummy objects (#8534)

feat: add orientation availability for tracked objects in perception publisher

Signed-off-by: Taekjin LEE <[email protected]>
  • Loading branch information
technolojin authored Aug 21, 2024
1 parent 47113d7 commit df530c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simulator/dummy_perception_publisher/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ TrackedObject ObjectInfo::toTrackedObject(
tracked_object.shape.dimensions.y = width;
tracked_object.shape.dimensions.z = height;
tracked_object.object_id = object.id;
tracked_object.kinematics.orientation_availability =
autoware_perception_msgs::msg::TrackedObjectKinematics::SIGN_UNKNOWN;
return tracked_object;
}

Expand Down Expand Up @@ -282,7 +284,7 @@ void DummyPerceptionPublisherNode::timerCallback()
feature_object.object.kinematics.twist_with_covariance =
object.initial_state.twist_covariance;
feature_object.object.kinematics.orientation_availability =
autoware_perception_msgs::msg::DetectedObjectKinematics::UNAVAILABLE;
autoware_perception_msgs::msg::DetectedObjectKinematics::SIGN_UNKNOWN;
feature_object.object.kinematics.has_twist = false;
tf2::toMsg(
tf_base_link2noised_moved_object,
Expand Down

0 comments on commit df530c2

Please sign in to comment.