ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi in your code print just call for once you can change code like this:
ros::Rate loop_rate(10);
while (ros::ok()){
print();
ros::spin();
ros::spinOnce();
loop_rate.sleep();
}
2 | No.2 Revision |
Hi in your code print just call for once you can change code like this:
ros::Rate loop_rate(10);
loop_rate(100);
while (ros::ok()){
print();
ros::spin();
ros::spinOnce();
loop_rate.sleep();
}
3 | No.3 Revision |
Hi in your code print just call for once you can change code like this:
ros::Rate loop_rate(100);
while (ros::ok()){
print();
ros::spin();
ros::spinOnce();
loop_rate.sleep();
}