8 int main(
int argc,
char **argv)
14 n.
param(
"frequency", frequency, 100.0);
15 ROS_INFO(
"Operator will run at %.2f Hz.", frequency);
19 Rate loopRate(frequency);
26 ROS_WARN(
"Missed desired rate of %.2f Hz! Loop actually took %.4f seconds!",frequency, loopRate.
cycleTime().
toSec());
void executeCommand()
Generates and sends Twist-Message to Robot This is the Operator's core function and should be called ...
The core of a ROS node to provide purely reactive obstacle avoidance The RobotOperator is supposed to...
Duration cycleTime() const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
int main(int argc, char **argv)
ROSCPP_DECL void spinOnce()