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 May 1, 2022
1 parent 3cc1378 commit f2706c6
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 @@ -115,6 +115,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 f2706c6

Please sign in to comment.