Skip to content

Commit

Permalink
improve info on robot motors connect
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Apr 6, 2018
1 parent 31527d6 commit 90ca31c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/programs/robotDevastation/RobotDevastation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,21 @@ bool rd::RobotDevastation::configure(yarp::os::ResourceFinder &rf)
//-- Start robot device
if( ! robotDevice.open(robotOptions) )
{
CD_ERROR("Could not open robot device\n");
CD_INFO_NO_HEADER("Checking for robot motors... ");
CD_ERROR_NO_HEADER("[fail]\n");
CD_INFO_NO_HEADER("Found no robot motors with robotName %s (try running with --fakeRobotManager if no robot), bye!\n", robotName.c_str());
return false;
}

//-- Acquire robot interface
if( ! robotDevice.view(robotManager) )
{
CD_INFO_NO_HEADER("Checking for robot motors... ");
CD_ERROR("Could not acquire robot interface\n");
return false;
}
CD_INFO_NO_HEADER("Checking for robot motors... ");
CD_SUCCESS_NO_HEADER("[ok]\n");

//-- Init image manager
if( rf.check("fakeImageManager") )
Expand Down

0 comments on commit 90ca31c

Please sign in to comment.