From ee2a60bd40781c737f7c0b05a9813ba89db5a337 Mon Sep 17 00:00:00 2001 From: Beniamino Pozzan Date: Mon, 13 Nov 2023 17:13:57 +0000 Subject: [PATCH] [camera plugin] Fix image_index and capture_result not properly filled Signed-off-by: Beniamino Pozzan --- mavros_extras/src/plugins/camera.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mavros_extras/src/plugins/camera.cpp b/mavros_extras/src/plugins/camera.cpp index a18d85212..9ca08a9ce 100644 --- a/mavros_extras/src/plugins/camera.cpp +++ b/mavros_extras/src/plugins/camera.cpp @@ -76,6 +76,8 @@ class CameraPlugin : public plugin::PluginBase { ic->relative_alt = mo.relative_alt / 1E3; auto q = ftf::mavlink_to_quaternion(mo.q); tf::quaternionEigenToMsg(q, ic->orientation); + ic->image_index = mo.image_index; + ic->capture_result = mo.capture_result; ic->file_url = mavlink::to_string(mo.file_url); camera_image_captured_pub.publish(ic);