Skip to content

Commit

Permalink
clang-format action fixes (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: makeecat <[email protected]>
  • Loading branch information
github-actions[bot] and makeecat authored Feb 29, 2024
1 parent 9d5e35a commit 2ea3eff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/transform_nodelet_ros2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,16 @@ void OvtransformNodeletClass::setupTransformationMatrix(const std::string transf
RCLCPP_INFO(this->get_logger(), "T_cam_imu:");
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 4; ++j) {
T_ItoC(i,j) = T_cam_imu["r" + std::to_string(i)]["c" + std::to_string(j)].as<double>();
T_ItoC(i, j) = T_cam_imu["r" + std::to_string(i)]["c" + std::to_string(j)].as<double>();
RCLCPP_INFO(this->get_logger(), " r%d_c%d: %f", i, j,
T_cam_imu["r" + std::to_string(i)]["c" + std::to_string(j)].as<double>());

}
}

RCLCPP_INFO(this->get_logger(), "T_cam_body:");
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 4; ++j) {
T_CtoB(i,j) = T_cam_body["r" + std::to_string(i)]["c" + std::to_string(j)].as<double>();
T_CtoB(i, j) = T_cam_body["r" + std::to_string(i)]["c" + std::to_string(j)].as<double>();
RCLCPP_INFO(this->get_logger(), " r%d_c%d: %f", i, j,
T_cam_body["r" + std::to_string(i)]["c" + std::to_string(j)].as<double>());
}
Expand All @@ -93,7 +92,7 @@ void OvtransformNodeletClass::setupTransformationMatrix(const std::string transf
RCLCPP_INFO(this->get_logger(), "T_B0_W:");
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 4; ++j) {
T_B0toW(i,j) = T_B0_W["r" + std::to_string(i)]["c" + std::to_string(j)].as<double>();
T_B0toW(i, j) = T_B0_W["r" + std::to_string(i)]["c" + std::to_string(j)].as<double>();
RCLCPP_INFO(this->get_logger(), " r%d_c%d: %f", i, j,
T_B0_W["r" + std::to_string(i)]["c" + std::to_string(j)].as<double>());
}
Expand Down

0 comments on commit 2ea3eff

Please sign in to comment.