

fix stop bug
@fe7e369a8dec470e79bdf46164850e617375c197
--- p9n_node/src/teleop_twist_joy_node.cpp
+++ p9n_node/src/teleop_twist_joy_node.cpp
... | ... | @@ -72,8 +72,7 @@ |
72 | 72 |
this->twist_pub_->publish(std::move(twist_msg)); |
73 | 73 |
|
74 | 74 |
stopped = false; |
75 |
- } |
|
76 |
- if (!stopped) { |
|
75 |
+ } else if (!stopped) { |
|
77 | 76 |
// Stop cart |
78 | 77 |
auto twist_msg = std::make_unique<Twist>(rosidl_runtime_cpp::MessageInitialization::ZERO); |
79 | 78 |
this->twist_pub_->publish(std::move(twist_msg)); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?