Skip to content

Commit 03ec919

Browse files
committed
CHG: cleanup
1 parent ca2eddd commit 03ec919

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

robotiq_hande_driver/hardware/include/robotiq_hande_driver/protocol_logic.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef ROBOTIQ_HANDE_DRIVER__PROTOCOL_LOGIC_HPP_
22
#define ROBOTIQ_HANDE_DRIVER__PROTOCOL_LOGIC_HPP_
33

4-
#include <cstdint>
54
#include "robotiq_hande_driver/communication.hpp"
65

76
namespace robotiq_hande_driver {

robotiq_hande_driver/hardware/src/hande_gripper.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ void HandeGripper::set_position(double position, double force) {
8484
static double prev_position = std::numeric_limits<double>::quiet_NaN();
8585
static double prev_force = std::numeric_limits<double>::quiet_NaN();
8686

87-
// TODO: decide if this is the bottleneck
8887
if(!std::isnan(prev_position) && std::fabs(position - prev_position) < EPSILON) return;
8988
if(!std::isnan(prev_force) && std::fabs(force - prev_force) < EPSILON) return;
9089
prev_position = position;

robotiq_hande_driver/hardware/src/hande_hardware_interface.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ void RobotiqHandeHardwareInterface::gripper_communication() {
204204
while(th_comm_enabled_) {
205205
try {
206206
gripper_driver_.read();
207-
// TODO try to remove these mutexes by using second pair of variables
208-
// Also, profiling the code also would be nice
209207
{
210208
std::lock_guard<std::mutex> lock(mtx_read_);
211209
read_position_ = gripper_driver_.get_position();

robotiq_hande_driver/hardware/src/protocol_logic.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ void ProtocolLogic::go_to(uint8_t position, uint8_t velocity, uint8_t force) {
7474
set_output_byte(OutputBytes::POSITION_REQUEST, position);
7575
set_output_byte(OutputBytes::SPEED, velocity);
7676
set_output_byte(OutputBytes::FORCE, force);
77-
// write_output_bytes(); // TODO - check if this line was the problem
7877
}
7978

8079
void ProtocolLogic::stop() {
@@ -132,8 +131,6 @@ uint8_t ProtocolLogic::get_raw_current() const {
132131
}
133132

134133
void ProtocolLogic::read_input_bytes() {
135-
// TODO - this method should be much faster - just switch pointers to access data
136-
// The duty of parsing should be moved to the 2nd thread
137134
communication_.read(input_bytes_);
138135

139136
raw_status_ = get_input_byte(InputBytes::GRIPPER_STATUS);
@@ -164,7 +161,6 @@ void ProtocolLogic::read_input_bytes() {
164161
}
165162

166163
void ProtocolLogic::write_output_bytes() {
167-
// TODO: output_butes_ should be atomic - we need to prepare two copies of it
168164
communication_.write(output_bytes_);
169165
}
170166

0 commit comments

Comments
 (0)