From b015e8e1f6a49b307bd4d3a73eb4f6d34df3e2a4 Mon Sep 17 00:00:00 2001 From: Walter Fetter Lages Date: Mon, 20 Mar 2023 00:39:56 -0300 Subject: [PATCH] Fix indentation. --- src/pose_stamped2joint.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pose_stamped2joint.cpp b/src/pose_stamped2joint.cpp index ae6d1f3..51af4e0 100644 --- a/src/pose_stamped2joint.cpp +++ b/src/pose_stamped2joint.cpp @@ -92,7 +92,7 @@ void Pose2Joint::poseCB(const geometry_msgs::msg::PoseStamped::SharedPtr poseSta } else { - jointTrajPoint.time_from_start.nanosec=1000000000+poseStamped->header.stamp.nanosec-t0_->nanosec; + jointTrajPoint.time_from_start.nanosec=1000000000+poseStamped->header.stamp.nanosec-t0_->nanosec; jointTrajPoint.time_from_start.sec=poseStamped->header.stamp.sec-t0_->sec-1; } @@ -101,7 +101,7 @@ void Pose2Joint::poseCB(const geometry_msgs::msg::PoseStamped::SharedPtr poseSta void Pose2Joint::robotDescriptionCB(const std_msgs::msg::String::SharedPtr robotDescription) { - robotDescription_=robotDescription->data; + robotDescription_=robotDescription->data; } int main(int argc,char* argv[]) @@ -116,8 +116,8 @@ int main(int argc,char* argv[]) Eigen::Matrix L; L << 1.0 , 1.0 , 1.0, 0.01, 0.01, 0.01; for(int i=0;i < argc-3 && i < L.size();i++) L(i)=atof(argv[i+3]); - - rclcpp::spin(std::make_shared("pose_stamped2joint",argv[1],argv[2],L)); - - return 0; + + rclcpp::spin(std::make_shared("pose_stamped2joint",argv[1],argv[2],L)); + + return 0; } -- 2.12.0