Skip to content

Commit

Permalink
initial target and source vectors based on config parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
David Conner committed Dec 7, 2022
1 parent 090ca8d commit 86caf8f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions image_rotate/src/image_rotate_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 86caf8f

Please sign in to comment.