Skip to content

Commit

Permalink
Change qos of the estop topic
Browse files Browse the repository at this point in the history
without when joy2twist was launched after panther_ros, estop message wasn't received correctly
  • Loading branch information
macstepien committed Dec 15, 2023
1 parent 4c4b1cd commit a52c1cd
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 @@ -18,7 +18,8 @@ Joy2TwistNode::Joy2TwistNode() : Node("joy2twist_node")

if (e_stop_present_) {
e_stop_sub_ = this->create_subscription<MsgBool>(
e_stop_topic_, rclcpp::SystemDefaultsQoS(), std::bind(&Joy2TwistNode::e_stop_cb, this, _1));
e_stop_topic_, rclcpp::QoS(rclcpp::KeepLast(1)).transient_local().reliable(),
std::bind(&Joy2TwistNode::e_stop_cb, this, _1));
e_stop_reset_client_ = this->create_client<SrvTrigger>(e_stop_reset_srv_);
e_stop_trigger_client_ = this->create_client<SrvTrigger>(e_stop_trigger_srv_);
}
Expand Down

0 comments on commit a52c1cd

Please sign in to comment.