Skip to content
Snippets Groups Projects
Commit 75d61732 authored by Fernando Herrero's avatar Fernando Herrero
Browse files

Update node rate set

parent fcee90e5
No related branches found
No related tags found
1 merge request!1Kinetic migration
...@@ -14,7 +14,8 @@ SafeCmdAlgNode::SafeCmdAlgNode(void) : ...@@ -14,7 +14,8 @@ SafeCmdAlgNode::SafeCmdAlgNode(void) :
tf_listener_(ros::Duration(10.f)) tf_listener_(ros::Duration(10.f))
{ {
//init class attributes if necessary //init class attributes if necessary
loop_rate_ = 30;//in [Hz] double loop_rate = 30;//in [Hz]
this->setRate(loop_rate);
// [init publishers] // [init publishers]
cmd_vel_safe_publisher_ = public_node_handle_.advertise<geometry_msgs::Twist>("cmd_vel_safe", 100); cmd_vel_safe_publisher_ = public_node_handle_.advertise<geometry_msgs::Twist>("cmd_vel_safe", 100);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment