Skip to content

Commit 1fa98ee

Browse files
committed
fix(franka hand): remove slow stopping
1 parent f4aea16 commit 1fa98ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hw/FrankaHand.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void FrankaHand::grasp() {
126126
this->is_moving = false;
127127
return;
128128
}
129-
this->m_stop();
129+
this->m_wait();
130130
this->control_thread = std::thread([&]() {
131131
this->is_moving = true;
132132
try {
@@ -149,7 +149,7 @@ void FrankaHand::open() {
149149
this->is_moving = false;
150150
return;
151151
}
152-
this->m_stop();
152+
this->m_wait();
153153
this->control_thread = std::thread([&]() {
154154
this->is_moving = true;
155155
try {
@@ -174,7 +174,7 @@ void FrankaHand::shut() {
174174
this->is_moving = false;
175175
return;
176176
}
177-
this->m_stop();
177+
this->m_wait();
178178
this->control_thread = std::thread([&]() {
179179
this->is_moving = true;
180180
this->gripper.move(0, this->cfg.speed);

0 commit comments

Comments
 (0)