Skip to content

Commit d761221

Browse files
authored
Merge pull request opencv#98 from zchenpds/melodic
Fix body marker orientation
2 parents 8c6964f + e6e7bf6 commit d761221

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/k4a_ros_device.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,10 @@ k4a_result_t K4AROSDevice::getBodyMarker(const k4abt_body_t& body, MarkerPtr mar
730730
marker_msg->pose.position.x = position.v[0] / 1000.0f;
731731
marker_msg->pose.position.y = position.v[1] / 1000.0f;
732732
marker_msg->pose.position.z = position.v[2] / 1000.0f;
733-
marker_msg->pose.orientation.x = orientation.v[0];
734-
marker_msg->pose.orientation.y = orientation.v[1];
735-
marker_msg->pose.orientation.z = orientation.v[2];
736-
marker_msg->pose.orientation.w = orientation.v[3];
733+
marker_msg->pose.orientation.w = orientation.wxyz.w;
734+
marker_msg->pose.orientation.x = orientation.wxyz.x;
735+
marker_msg->pose.orientation.y = orientation.wxyz.y;
736+
marker_msg->pose.orientation.z = orientation.wxyz.z;
737737

738738
return K4A_RESULT_SUCCEEDED;
739739
}

0 commit comments

Comments
 (0)