Skip to content
Snippets Groups Projects
Commit 43e9061f authored by Irene Garcia Camacho's avatar Irene Garcia Camacho
Browse files

Minor changes in walk and head_tracking modules.

parent f16d0b15
No related branches found
No related tags found
1 merge request!4Filtered localization
......@@ -32,8 +32,7 @@ CHeadTrackingModule::CHeadTrackingModule(const std::string &name) : CHumanoidMod
this->head_target.velocities.resize(2);
this->head_target.accelerations.resize(2);
this->head_target.effort.resize(2);
this->head_target_timer=this->module_nh.createTimer(ros::Duration(1.0/this->config.head_target_rate_hz),&CHeadTrackingModule::head_target_pub,this);
this->head_target_timer.stop();
this->head_target_timer=this->module_nh.createTimer(ros::Duration(1.0/this->config.head_target_rate_hz),&CHeadTrackingModule::head_target_pub,this,false,false);
/* assign check callback functions to the PID services */
this->set_pan_pid_service.set_call_check_function(boost::bind(&CHeadTrackingModule::check_set_pid_service,this,_1));
this->get_pan_pid_service.set_call_check_function(boost::bind(&CHeadTrackingModule::check_get_pid_service,this,_1));
......
......@@ -17,8 +17,7 @@ CWalkModule::CWalkModule(const std::string &name) : CHumanoidModule(name,WALK_MO
this->cmd_vel_msg.angular.z=0.0;
/* initiqalize the command velocity publisher */
this->cmd_vel_publisher=this->module_nh.advertise<geometry_msgs::Twist>("cmd_vel",1);
this->cmd_vel_timer=this->module_nh.createTimer(ros::Duration(1.0/this->config.cmd_vel_rate_hz),&CWalkModule::cmd_vel_pub,this);
this->cmd_vel_timer.stop();
this->cmd_vel_timer=this->module_nh.createTimer(ros::Duration(1.0/this->config.cmd_vel_rate_hz),&CWalkModule::cmd_vel_pub,this,false,false);
/* joint states subscriber */
this->joint_state_subscriber=this->module_nh.subscribe("joint_states",1,&CWalkModule::joint_state_callback,this);
/* fallen state subscriber */
......
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