Skip to content

Commit

Permalink
Added blank lines for readability after closing braces
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hansen committed Mar 8, 2017
1 parent b1fa07d commit face1a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion realsense_camera/src/sync_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ PLUGINLIB_EXPORT_CLASS(realsense_camera::SyncNodelet, nodelet::Nodelet)

namespace realsense_camera
{

SyncNodelet::~SyncNodelet()
{
topic_thread_->join();
Expand Down Expand Up @@ -66,6 +65,7 @@ namespace realsense_camera
{
ROS_INFO_STREAM(nodelet_name_ << " - " << stopCamera());
}

start_stop_srv_called_ = false;
}

Expand Down Expand Up @@ -99,10 +99,12 @@ namespace realsense_camera
{
setImageData(RS_STREAM_DEPTH);
}

if (camera_publisher_[RS_STREAM_COLOR].getNumSubscribers() <= 0)
{
setImageData(RS_STREAM_COLOR);
}

publishPCTopic();
}
}
Expand Down Expand Up @@ -161,9 +163,11 @@ namespace realsense_camera
duplicate_depth_color_ = true; // Set this flag to true if Depth and/or Color frame is duplicate
}
}

ts_[stream_index] = frame_ts;
}
}

void SyncNodelet::setImageData(rs_stream stream_index)
{
if (stream_index == RS_STREAM_DEPTH)
Expand Down

0 comments on commit face1a5

Please sign in to comment.