Skip to content

Commit

Permalink
Add an initialization of the gripper action command for safe startup. (
Browse files Browse the repository at this point in the history
  • Loading branch information
ShotaAk committed Sep 1, 2022
1 parent fe89a54 commit fe306da
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ controller_interface::CallbackReturn GripperActionController<HardwareInterface>:
// Command - non RT version
command_struct_.position_ = joint_position_state_interface_->get().get_value();
command_struct_.max_effort_ = default_max_effort_;
command_.initRT(command_struct_);

// Result
pre_alloc_result_ = std::make_shared<control_msgs::action::GripperCommand::Result>();
Expand Down

0 comments on commit fe306da

Please sign in to comment.