Skip to content
Snippets Groups Projects
Commit 476fe904 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Used the setRate() function to sate the rate of the thread because the attribute is now private.

parent fcee90e5
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ SafeCmdAlgNode::SafeCmdAlgNode(void) : ...@@ -14,7 +14,7 @@ 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] this->setRate(30);//in [Hz]
// [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