Skip to content
Snippets Groups Projects
Commit e64935bb authored by Sebastian Gomez-Gonzalez's avatar Sebastian Gomez-Gonzalez
Browse files

Adding more logging lines

parent 0be02974
Branches
Tags
No related merge requests found
......@@ -32,6 +32,7 @@ namespace ball_tracking {
unique_ptr<zmqpp::socket> position_pub;
CameraSet cams;
high_resolution_clock::time_point start_time;
bool running;
Impl() {
position_pub = nullptr;
......@@ -106,14 +107,18 @@ namespace ball_tracking {
tlistener.add_listener(ID, call_back);
}
BOOST_LOG_TRIVIAL(debug) << "Starting all the camera listeners";
running = true;
cams.start(tlistener);
}
void stop() {
if (running) {
running = false;
BOOST_LOG_TRIVIAL(info) << "Stopping the position publisher server";
cams.stop();
tlistener.stop();
}
}
~Impl() {
stop();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment