Skip to content

Commit

Permalink
Add param for wait time in direct cam pointing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
skohlbr committed Sep 28, 2021
1 parent 775d907 commit 05b7903
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -169,6 +169,8 @@ class CamJointTrajControl
ros::Time pattern_switch_time_;

bool use_direct_position_commands_;
double direct_position_command_default_wait_time_;

bool use_planning_based_pointing_;
bool disable_orientation_camera_command_input_;
};
Expand Down
Expand Up @@ -117,6 +117,9 @@ void CamJointTrajControl::Init()


pnh_.getParam("use_direct_position_commands", use_direct_position_commands_);
direct_position_command_default_wait_time_ = 4.0;
pnh_.getParam("direct_position_command_default_wait_time", direct_position_command_default_wait_time_);

pnh_.getParam("use_planning_based_pointing", use_planning_based_pointing_);

if (type_string == "xyz"){
Expand Down Expand Up @@ -795,7 +798,7 @@ void CamJointTrajControl::lookAtGoalCallback()

if (use_direct_position_commands_){
reached_lookat_target_timer_ = nh_.createTimer(
ros::Duration(4.0),
ros::Duration(direct_position_command_default_wait_time_),
&CamJointTrajControl::directPointingTimerCallback,
this,
true,
Expand Down

0 comments on commit 05b7903

Please sign in to comment.