Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KmakD committed Dec 4, 2023
1 parent 3205590 commit 6800284
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion joy2twist/src/joy2twist_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ void Joy2TwistNode::joy_cb(const MsgJoy::SharedPtr joy_msg)

if (e_stop_present_) {
if (joy_msg->buttons.at(button_index_.e_stop_trigger) && !e_stop_state_) {
twist_pub_->publish(twist_msg); // stop the robot before trying to call e-stop trigger service
// Stop the robot before trying to call the e-stop trigger service
twist_pub_->publish(twist_msg);
call_trigger_service(e_stop_trigger_client_);
} else if (
joy_msg->buttons.at(button_index_.enable_e_stop_reset) &&
Expand Down

0 comments on commit 6800284

Please sign in to comment.