Skip to content

Commit

Permalink
Debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyRe committed Jan 12, 2015
1 parent f6d3dd7 commit 04672b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cerevoice_tts/src/CerevoiceTts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ bool CerevoiceTts::init()
ROS_ERROR("Unable to create player with sample rate %d Hz!", sample_rate);
return false;
}
else
ROS_DEBUG("Player created successfully.");

// set the callback
success = CPRCEN_engine_set_callback(engine_, channel_handle_, this, channelCallback);
Expand All @@ -244,9 +246,12 @@ bool CerevoiceTts::init()
ROS_ERROR("Unable to set callback function!");
return false;
}
else
ROS_DEBUG("Callback set successfully.");

// start the action server
action_server_.start();
ROS_DEBUG("Action server started.");

return true;
}
Expand Down
4 changes: 4 additions & 0 deletions cerevoice_tts/src/cerevoice_tts_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ int main(int argc, char **argv)

if(!initialized)
return EXIT_FAILURE;
else
ROS_INFO("Cerevoice initialized successfully.");

ros::spinOnce();

Expand Down Expand Up @@ -83,6 +85,8 @@ int main(int argc, char **argv)
if(action_client.getState() != actionlib::SimpleClientGoalState::SUCCEEDED)
ROS_ERROR("Synthesizing the startup sentence failed!");
}
else
ROS_DEBUG("No startup sentence specified.");

ros::spin();

Expand Down

0 comments on commit 04672b5

Please sign in to comment.