Skip to content

Commit

Permalink
init doubles to 0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adlarkin committed Mar 4, 2024
1 parent 1a8475a commit f73c0e5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions robotiq_driver/include/robotiq_driver/hardware_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,24 +140,24 @@ class RobotiqGripperHardwareInterface : public hardware_interface::SystemInterfa
std::atomic<bool> communication_thread_is_running_;
void background_task();

double gripper_closed_pos_;
double gripper_closed_pos_ = 0.0;

static constexpr double NO_NEW_CMD_ = std::numeric_limits<double>::quiet_NaN();

double gripper_position_;
double gripper_velocity_;
double gripper_position_command_;
double gripper_position_ = 0.0;
double gripper_velocity_ = 0.0;
double gripper_position_command_ = 0.0;

std::atomic<uint8_t> write_command_;
std::atomic<uint8_t> write_force_;
std::atomic<uint8_t> write_speed_;
std::atomic<uint8_t> gripper_current_state_;

double reactivate_gripper_cmd_;
double reactivate_gripper_cmd_ = 0.0;
std::atomic<bool> reactivate_gripper_async_cmd_;
double reactivate_gripper_response_;
double gripper_force_;
double gripper_speed_;
double reactivate_gripper_response_ = 0.0;
double gripper_force_ = 0.0;
double gripper_speed_ = 0.0;
std::atomic<std::optional<bool>> reactivate_gripper_async_response_;
};

Expand Down

0 comments on commit f73c0e5

Please sign in to comment.