Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

Commit 085ac42

Browse files
author
Olav de Haas
committed
Add more throttle
1 parent a1ccfb1 commit 085ac42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

march_hardware/src/EtherCAT/EthercatMaster.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void EthercatMaster::monitorSlaveConnection()
197197
if (!ec_slave[slave].state)
198198
{
199199
// TODO(@Tim, @Isha, @Martijn) throw error when it happens multiple times in a short period of time.
200-
ROS_WARN("EtherCAT train lost connection from slave %d onwards", slave);
200+
ROS_WARN_THROTTLE(1, "EtherCAT train lost connection from slave %d onwards", slave);
201201
return;
202202
}
203203
}

march_hardware/src/IMotionCube.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ bool IMotionCube::goToTargetState(IMotionCubeTargetState targetState)
468468
while (!targetState.isReached(this->getStatusWord()))
469469
{
470470
this->setControlWord(targetState.getControlWord());
471-
ROS_INFO_DELAYED_THROTTLE(2, "\tWaiting for '%s': %s", targetState.getDescription().c_str(),
471+
ROS_INFO_DELAYED_THROTTLE(5, "\tWaiting for '%s': %s", targetState.getDescription().c_str(),
472472
std::bitset<16>(this->getStatusWord()).to_string().c_str());
473473
if (targetState.getState() == IMotionCubeTargetState::OPERATION_ENABLED.getState() &&
474474
this->getState(this->getStatusWord()) == IMCState::fault)

0 commit comments

Comments
 (0)