From 86caf8fc13742064026f075709c75330d1487ddb Mon Sep 17 00:00:00 2001 From: David Conner Date: Sun, 1 May 2022 17:38:29 -0400 Subject: [PATCH] initial target and source vectors based on config parameters --- image_rotate/src/image_rotate_node.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/image_rotate/src/image_rotate_node.cpp b/image_rotate/src/image_rotate_node.cpp index 6839b9ca9..eea17b94e 100644 --- a/image_rotate/src/image_rotate_node.cpp +++ b/image_rotate/src/image_rotate_node.cpp @@ -136,6 +136,16 @@ ImageRotateNode::ImageRotateNode() }; on_set_parameters_callback_handle_ = this->add_on_set_parameters_callback(reconfigureCallback); onInit(); + + // Set initial target and source based on config parameters + target_vector_.vector.x = config_.target_x; + target_vector_.vector.y = config_.target_y; + target_vector_.vector.z = config_.target_z; + + source_vector_.vector.x = config_.source_x; + source_vector_.vector.y = config_.source_y; + source_vector_.vector.z = config_.source_z; + } const std::string ImageRotateNode::frameWithDefault(