loop rate change
This commit is contained in:
parent
331da53d62
commit
4ec997352c
|
@ -68,14 +68,14 @@ namespace rosbzz_node{
|
||||||
/*run once*/
|
/*run once*/
|
||||||
ros::spinOnce();
|
ros::spinOnce();
|
||||||
/*loop rate of ros*/
|
/*loop rate of ros*/
|
||||||
if( get_update_mode() == CODE_STANDBY){
|
/*if( get_update_mode() == CODE_STANDBY){
|
||||||
ros::Rate loop_rate(10);
|
ros::Rate loop_rate(10);
|
||||||
loop_rate.sleep();
|
loop_rate.sleep();
|
||||||
}
|
}
|
||||||
else{
|
else{*/
|
||||||
ros::Rate loop_rate(10);
|
ros::Rate loop_rate(50);
|
||||||
loop_rate.sleep();
|
loop_rate.sleep();
|
||||||
}
|
//}
|
||||||
/*sleep for the mentioned loop rate*/
|
/*sleep for the mentioned loop rate*/
|
||||||
|
|
||||||
timer_step+=1;
|
timer_step+=1;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# We need this for 2D vectors
|
# We need this for 2D vectors
|
||||||
# Make sure you pass the correct include path to "bzzc -I <path1:path2> ..."
|
# Make sure you pass the correct include path to "bzzc -I <path1:path2> ..."
|
||||||
include "/home/ubuntu/buzz/src/include/vec2.bzz"
|
include "/home/ubuntu/buzz/src/include/vec2.bzz"
|
||||||
|
|
Loading…
Reference in New Issue