22 ROS_INFO(
"[dsr_control] shutdown time! (sig = %d)",sig);
23 ROS_INFO(
"[dsr_control] shutdown time! (sig = %d)",sig);
24 ROS_INFO(
"[dsr_control] shutdown time! (sig = %d)",sig);
31 int main(
int argc,
char** argv)
44 private_nh.
param<
int>(
"rate", rate, 50);
53 ROS_ERROR(
"[dsr_control] Error initializing robot");
71 ROS_INFO(
"[dsr_control] controller_manager is updating!");
79 elapsed = curr_time - last_time;
80 if(pArm) pArm->
read(elapsed);
82 if(pArm) pArm->
write(elapsed);
85 catch(std::runtime_error& ex)
87 ROS_ERROR(
"[dsr_control] Exception: [%s]", ex.what());
88 ROS_ERROR(
"[dsr_control] Exception: [%s]", ex.what());
89 ROS_ERROR(
"[dsr_control] Exception: [%s]", ex.what());
97 ROS_INFO(
"[dsr_control] Good-bye!");
virtual void read(ros::Duration &elapsed_time)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
virtual void write(ros::Duration &elapsed_time)
ROSCPP_DECL void shutdown()
void update(const ros::Time &time, const ros::Duration &period, bool reset_controllers=false)