Skip to content

Commit

Permalink
Fix code style divergence reported by colcon test
Browse files Browse the repository at this point in the history
  • Loading branch information
rayferric committed Mar 25, 2024
1 parent 6ad06c9 commit 97d9fab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aruco_opencv/src/aruco_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ class ArucoTracker : public rclcpp_lifecycle::LifecycleNode
cam_info_retrieved_ = false;

std::string cam_info_topic = image_transport::getCameraInfoTopic(cam_base_topic_);
if (cam_base_topic_.size() > 0 && cam_base_topic_[0] != '/' && cam_info_topic.size() > 0 && cam_info_topic[0] == '/') {
if (cam_base_topic_.size() > 0 && cam_base_topic_[0] != '/' &&
cam_info_topic.size() > 0 && cam_info_topic[0] == '/')
{
// Remove leading slash to allow for relative camera_base_topic.
cam_info_topic = cam_info_topic.substr(1);
}
Expand Down

0 comments on commit 97d9fab

Please sign in to comment.