Skip to content

Commit

Permalink
Prefer stream logging
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Jan 1, 2024
1 parent 629fe08 commit a69f97b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions programs/BodyExecution/BodyExecution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,32 +54,32 @@ bool BodyExecution::configure(yarp::os::ResourceFinder & rf)

if (!robotDevice.open(robotOptions))
{
yError("Failed to open robot device");
yError() << "Failed to open robot device";
return false;
}

if (!robotDevice.view(iControlMode) || !robotDevice.view(iPositionControl))
{
yError("Failed to view robot interfaces");
yError() << "Failed to view robot interfaces";
return false;
}

if (!iControlMode->setControlModes(std::vector(axesNames.size(), VOCAB_CM_POSITION).data()))
{
yError("Failed to set position control mode");
yError() << "Failed to set position control mode";
return false;
}

if (!iPositionControl->setRefSpeeds(std::vector(axesNames.size(), DEFAULT_REF_SPEED).data()))
{
yError("Failed to set reference speeds");
yError() << "Failed to set reference speeds";
return false;
}

if (!iPositionControl->setRefAccelerations(std::vector(axesNames.size(), DEFAULT_REF_ACCELERATION).data()))
{
// might not be available in certain implementations, e.g. OpenRAVE
yWarning("Failed to set reference accelerations");
yWarning() << "Failed to set reference accelerations";
}

if (!serverPort.open(DEFAULT_PREFIX + std::string("/rpc:s")))
Expand Down

0 comments on commit a69f97b

Please sign in to comment.